]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-notify: print a debug message when sd_notify() succeds 39927/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Nov 2025 14:04:48 +0000 (15:04 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Nov 2025 19:03:00 +0000 (20:03 +0100)
commit21eb636aaad28707bd371bdfd721dea66277e1f5
treea30c156a162464f23ad31cc2e15c1566deaa293a
parentf943ab6efbcdccd6f656fc868f3cf426ebdd3a33
sd-notify: print a debug message when sd_notify() succeds

… and also when it fails, in the few cases where this wasn't done already.
When I was debugging https://github.com/systemd/systemd/issues/39048, it
was quite confusing that we print copious information about D-Bus messages
and all other steps we're undertaking, but nothing about the sd-notify
messages which are much more important. Add some debug messages for the
cases where we didn't print anything. (The case where $NOTIFY_SOCKET is
not set in left unchanged. The variable is often left unset and we don't
need to spam logs in that trivial case.)
src/libsystemd/sd-daemon/sd-daemon.c