diff options
| author | Santosh P K <50885001+Spantik@users.noreply.github.com> | 2020-04-16 20:23:44 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-16 20:23:44 +0530 |
| commit | 09133ff4f71a50e6cd15618ffc969604422f9436 (patch) | |
| tree | c26ce24f253b8eb20b75483370c0728a4bf854f5 /tests/lib/cli/common_cli.c | |
| parent | c845358213872f1ec7b4e2c431fc62de353ff7ab (diff) | |
| parent | 6c19e557a59c9301db3981eff40867be347dfb74 (diff) | |
Merge pull request #5451 from opensourcerouting/rcu-log
logging subsystem rewrite
Diffstat (limited to 'tests/lib/cli/common_cli.c')
| -rw-r--r-- | tests/lib/cli/common_cli.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c index bd81656ca9..3cade4a2c9 100644 --- a/tests/lib/cli/common_cli.c +++ b/tests/lib/cli/common_cli.c @@ -53,7 +53,6 @@ static void vty_do_exit(int isexit) nb_terminate(); yang_terminate(); thread_master_free(master); - closezlog(); log_memstats(stderr, "testcli"); if (!isexit) @@ -71,11 +70,7 @@ int main(int argc, char **argv) /* master init. */ master = thread_master_create(NULL); - openzlog("common-cli", "NONE", 0, LOG_CONS | LOG_NDELAY | LOG_PID, - LOG_DAEMON); - zlog_set_level(ZLOG_DEST_SYSLOG, ZLOG_DISABLED); - zlog_set_level(ZLOG_DEST_STDOUT, ZLOG_DISABLED); - zlog_set_level(ZLOG_DEST_MONITOR, LOG_DEBUG); + zlog_aux_init("NONE: ", ZLOG_DISABLED); /* Library inits. */ cmd_init(1); |
