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:
Martin Pulec
2022-08-16 15:11:27 +02:00
parent e15e0f9cb9
commit a9bc710a73
2 changed files with 2 additions and 5 deletions

View File

@@ -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;
}