Skip to content

Commit 51f289a

Browse files
committed
statd: reduce log warning to debug
This fixes the following log message on systems w/o firewall enabled dumping operational data: Dec 2 09:24:57 test-00-02-00 yanger[5352]: Failed to connect to firewalld D-Bus: org.freedesktop.DBus.Error.ServiceUnknown: The name org.fedoraproject.FirewallD1 was not provided by any .service files [skip ci] Signed-off-by: Joachim Wiberg <[email protected]>
1 parent cd0a5f3 commit 51f289a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/statd/python/yanger/infix_firewall.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def get_interface(interface="org.fedoraproject.FirewallD1"):
1919
return dbus.Interface(obj, dbus_interface=interface)
2020

2121
except dbus.exceptions.DBusException as e:
22-
common.LOG.warning("Failed to connect to firewalld D-Bus: %s", e)
22+
# Firewall service may not be running, this is not an error
23+
common.LOG.debug("Firewalld not available: %s", e)
2324
return None
2425

2526

0 commit comments

Comments
 (0)