balena-io-modules / network-manager

Rust NetworkManager bindings
Apache License 2.0
37 stars 30 forks source link

Lower log level on get property of expired D-Bus object path #91

Closed majorz closed 7 years ago

majorz commented 7 years ago

Some object paths expire (like active connection paths) which may lead to failure in getting the properties of that object in runtime. Since we update similar objects path when such error occurs and retry, we should not log them with an error level, but a warn one.

An example log entry of getting a property of expired active connection path:

8.08.17 10:21:40 (+0100) ERROR:network_manager::dbus_api: D-Bus get 'org.freedesktop.NetworkManager.Connection.Active'::'State' property failed on '/org/freedesktop/NetworkManager/ActiveConnection/4': No such interface 'org.freedesktop.DBus.Properties' on object at path /org/freedesktop/NetworkManager/ActiveConnection/4