mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 09:40:18 +00:00
respect ULTRAGRID_VEBOSE environment variable
Previously it was errorneously checked while setting log level from the command-line opt. If no was given, the particular function was not run.
This commit is contained in:
@@ -244,10 +244,6 @@ bool parse_log_cfg(const char *conf_str,
|
||||
*show_timestamps = LOG_TIMESTAMP_DISABLED;
|
||||
}
|
||||
|
||||
if (getenv("ULTRAGRID_VERBOSE") != nullptr) {
|
||||
*log_lvl = LOG_LEVEL_VERBOSE;
|
||||
}
|
||||
|
||||
if (cfg.empty() || cfg[0] == '+' || cfg[0] == '-') { // only flags, no log level
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user