Change error to warning for DBUS

When DBUS is not running it's not necessary to mark is as error since You can easily run salt without it. Logging it as error makes only unnecessary log mess.
This commit is contained in:
David Zisky 2017-02-17 11:50:53 +01:00 committed by GitHub
parent 3fc1e2c9f8
commit 9dce2da5ca

View File

@ -64,7 +64,7 @@ if HAS_DBUS:
try:
bus = dbus.SystemBus()
except dbus.DBusException as exc:
log.error(exc)
log.warning(exc)
system_bus_error = exc
else:
if SNAPPER_DBUS_OBJECT in bus.list_activatable_names():
@ -73,7 +73,7 @@ if HAS_DBUS:
SNAPPER_DBUS_PATH),
dbus_interface=SNAPPER_DBUS_INTERFACE)
except (dbus.DBusException, ValueError) as exc:
log.error(exc)
log.warning(exc)
snapper_error = exc
else:
snapper_error = 'snapper is missing'