Skip to content
Snippets Groups Projects
Commit a1f8ea82 authored by Simon McVittie's avatar Simon McVittie
Browse files

log: Treat DEBUG_INVOCATION=1 as equivalent to SRT_LOG=debug


systemd ≥ 257 sets this if a service with RestartMode=debug is restarted,
and suggests that logging code should take it into account.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 72364f0f
No related branches found
No related tags found
1 merge request!773log: Treat DEBUG_INVOCATION=1 as equivalent to SRT_LOG=debug
Pipeline #109791 passed
......@@ -699,6 +699,9 @@ _srt_util_set_glib_log_handler (const char *prgname,
if (_srt_boolean_environment ("PRESSURE_VESSEL_LOG_WITH_TIMESTAMP", FALSE))
flags |= SRT_LOG_FLAGS_TIMESTAMP;
if (_srt_boolean_environment ("DEBUG_INVOCATION", FALSE))
flags |= SRT_LOG_FLAGS_DEBUG;
if (_srt_boolean_environment ("PRESSURE_VESSEL_LOG_INFO", FALSE))
flags |= SRT_LOG_FLAGS_INFO;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment