Use environment variable ULTRAGRID_VERBOSE

This commit is contained in:
Martin Pulec
2021-05-26 14:48:53 +02:00
parent 1d47a5f00d
commit f06204262b
4 changed files with 31 additions and 4 deletions

View File

@@ -234,6 +234,10 @@ bool set_log_level(const char *optarg, bool *logger_repeat_msgs) {
*logger_repeat_msgs = true;
}
if (getenv("ULTRAGRID_VERBOSE") != nullptr) {
log_level = LOG_LEVEL_VERBOSE;
}
if (optarg[0] == '+') {
return true;
}