]> git.ipfire.org Git - thirdparty/systemd.git/commit
varlink: add debug logging 17936/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Dec 2020 19:41:41 +0000 (20:41 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 14 Dec 2020 18:21:55 +0000 (19:21 +0100)
commitdb3d4222e9fc29ed2b6e6810756f74821ddd556e
tree452e441eb8b5a5d2ebf861f790dc06fa8cdeca89
parentb3a791580556c7e6f0c9d8ac836408e1c16627b9
varlink: add debug logging

When something fails, we need some logs to figure out what happened.
This is primarily relevant for connection errors, but in general we
want to log about all errors, even if they are relatively unlikely.

We want one log on failure, and generally no logs on success.
The general idea is to not log in static functions, and to log in the
non-static functions. Non-static functions which call other functions
may thus log or not log as appropriate to have just one log entry in the
end.
src/shared/varlink.c