]> git.ipfire.org Git - thirdparty/systemd.git/commit
daemon-util: downgrade log level on ECONNREFUSED and friends
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 6 Feb 2026 16:07:33 +0000 (01:07 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 6 Feb 2026 23:15:33 +0000 (00:15 +0100)
commit1f3b407307b998295e617de4c5bc477daebcc80d
treee6a6859d391b3b10da03ea2076438bc38d781f04
parente28958315f371d4db349fc99f04c5adfb7edaea6
daemon-util: downgrade log level on ECONNREFUSED and friends

This partially reverts 36c557f7d41441bbd98a8965348dfe8050fc9c98, which
introduced notify_remove_fd() that logs in LOG_DEBUG. However,
notify_remove_fd_warn() is still called other library functions, e.g.
notify_push_fd(), and produces warning message about the failure in
removing fd from fdstore on shutdown.

During shutdown process, we get the following logs:
```
systemd-udevd[370]: Failed to send notify message to '/run/systemd/notify': Connection refused
systemd-udevd[370]: Failed to remove file descriptor "config-serialization" from the store, ignoring: Connection refused
systemd-udevd[370]: Failed to send notify message to '/run/systemd/notify': Connection refused
systemd-udevd[370]: Failed to push serialization fd to service manager: Connection refused
```
Here, the 1st, 3rd, and 4th messages are in LOG_DEBUG, but the 2nd one
was in LOG_WARNING before this commit, and this makes it also in LOG_DEBUG.

Follow-up for 472404aca5357b7e65cdddf418342070b0ccd4d2.
src/shared/daemon-util.c
src/shared/daemon-util.h
src/udev/udev-manager.c