@@ 99,6 99,8 @@ func (n *NetMan) signalHandler(sig *dbus.Signal) {
// signals...
newState := sig.Body[0].(uint32)
+ n.log.Debugf("got new state from NetworkManager: %s", nm_states[newState])
+
switch nm_states[newState] {
case "NM_DEVICE_STATE_ACTIVATED":
fallthrough
@@ 112,7 114,10 @@ func (n *NetMan) signalHandler(sig *dbus.Signal) {
n.log.Println("netman: timed out trying to send latest list of nameservers")
return
case n.ns <- n.getNS():
+ n.log.Debug("netman: sent list of nameservers")
}
+ default:
+ n.log.Debug("netman: ignoring state from NetworkManager: ", nm_states[newState])
}
}