diff --git a/src/ctr_logging.c b/src/ctr_logging.c index 2a5a6a7d..32d9be06 100644 --- a/src/ctr_logging.c +++ b/src/ctr_logging.c @@ -141,6 +141,10 @@ static void parse_log_path(char *log_config) { char *driver = strtok(log_config, ":"); char *path = strtok(NULL, ":"); + if (!strcmp(driver, "off") || !strcmp(driver, "null") || !strcmp(driver, "none")) { + // both left false, no-op + return; + } if (!strcmp(driver, JOURNALD_FILE_STRING)) { use_journald_logging = TRUE; return;