Skip to content

Commit

Permalink
More debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vikulin committed Jun 18, 2024
1 parent 9ab4d38 commit 8bc49ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/multicast/multicast.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,12 @@ func (m *Multicast) _stop() error {

func (m *Multicast) _updateInterfaces() {
interfaces := m._getAllowedInterfaces()
m.log.Infoln("Allowed ifaces:" + fmt.Sprint(len(interfaces)))
for name, info := range interfaces {
m.log.Infoln("Iface name:" + name)
addrs, err := info.iface.Addrs()
if err != nil {
m.log.Infoln("Failed up get addresses for interface %s: %s", name, err)

Check failure on line 154 in src/multicast/multicast.go

View workflow job for this annotation

GitHub Actions / Build & Test (macOS, Go 1.21)

(*github.com/gologme/log.Logger).Infoln call has possible Printf formatting directive %s

Check failure on line 154 in src/multicast/multicast.go

View workflow job for this annotation

GitHub Actions / Build & Test (Linux, Go 1.20)

(*github.com/gologme/log.Logger).Infoln call has possible formatting directive %s

Check failure on line 154 in src/multicast/multicast.go

View workflow job for this annotation

GitHub Actions / Build & Test (Windows, Go 1.21)

(*github.com/gologme/log.Logger).Infoln call has possible Printf formatting directive %s

Check failure on line 154 in src/multicast/multicast.go

View workflow job for this annotation

GitHub Actions / Build & Test (Linux, Go 1.21)

(*github.com/gologme/log.Logger).Infoln call has possible Printf formatting directive %s
m.log.Warnf("Failed up get addresses for interface %s: %s", name, err)
delete(interfaces, name)
continue
Expand Down

0 comments on commit 8bc49ea

Please sign in to comment.