Skip to content

Commit

Permalink
Implement none driver - "off", "null" or "none" all work.
Browse files Browse the repository at this point in the history
  • Loading branch information
goochjj committed Jun 10, 2020
1 parent f951578 commit d6e4931
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ctr_logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d6e4931

Please sign in to comment.