diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-15 11:09:00 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-15 11:09:00 +0100 |
commit | f1d34068ef8d657238235d04ea291ee1ca095129 (patch) | |
tree | 18d734892f170e299b74734ec2005831522916ed /src/journal-remote/journal-upload.c | |
parent | Merge pull request #7637 from yuwata/transient-path (diff) | |
download | systemd-f1d34068ef8d657238235d04ea291ee1ca095129.tar.xz systemd-f1d34068ef8d657238235d04ea291ee1ca095129.zip |
tree-wide: add DEBUG_LOGGING macro that checks whether debug logging is on (#7645)
This makes things a bit easier to read I think, and also makes sure we
always use the _unlikely_ wrapper around it, which so far we used
sometimes and other times we didn't. Let's clean that up.
Diffstat (limited to 'src/journal-remote/journal-upload.c')
-rw-r--r-- | src/journal-remote/journal-upload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c index 69718aae87..7566543c1a 100644 --- a/src/journal-remote/journal-upload.c +++ b/src/journal-remote/journal-upload.c @@ -248,7 +248,7 @@ int start_upload(Uploader *u, easy_setopt(curl, CURLOPT_HTTPHEADER, u->header, LOG_ERR, return -EXFULL); - if (_unlikely_(log_get_max_level() >= LOG_DEBUG)) + if (DEBUG_LOGGING) /* enable verbose for easier tracing */ easy_setopt(curl, CURLOPT_VERBOSE, 1L, LOG_WARNING, ); |