mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-05 13:11:32 +00:00
journal-upload: enable curl debug output conditionally
https://bugs.freedesktop.org/show_bug.cgi?id=86464
(cherry picked from commit 5dabb1e04e)
This commit is contained in:
@@ -243,8 +243,9 @@ int start_upload(Uploader *u,
|
||||
easy_setopt(curl, CURLOPT_HTTPHEADER, u->header,
|
||||
LOG_ERR, return -EXFULL);
|
||||
|
||||
/* enable verbose for easier tracing */
|
||||
easy_setopt(curl, CURLOPT_VERBOSE, 1L, LOG_WARNING, );
|
||||
if (_unlikely_(log_get_max_level() >= LOG_DEBUG))
|
||||
/* enable verbose for easier tracing */
|
||||
easy_setopt(curl, CURLOPT_VERBOSE, 1L, LOG_WARNING, );
|
||||
|
||||
easy_setopt(curl, CURLOPT_USERAGENT,
|
||||
"systemd-journal-upload " PACKAGE_STRING,
|
||||
|
||||
Reference in New Issue
Block a user