mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
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:
parent
3fc1e2c9f8
commit
9dce2da5ca
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user