summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorSid Khot <sidkhot@cumulusnetworks.com>2016-08-17 19:36:54 -0700
committerSid Khot <sidkhot@cumulusnetworks.com>2016-08-17 19:36:54 -0700
commitc05795b16b4bcb9de4663f3fc9664a623277d47a (patch)
tree0fa49699ada82afba5915865829a421ad5be7796 /lib/command.c
parenta94d98ae98ec45e34de287daf4c9d16be3ea62b9 (diff)
Fix for CM-12450 Ensure quagga logs at startup are sent to syslog (until log configuration is processed)
Ticket: CM-12450 Reviewed By: CCR-5112 Testing Done: Manual
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index 2e80eea9e3..10ab066bfb 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -3752,6 +3752,10 @@ set_log_file(struct vty *vty, const char *fname, int loglevel)
host.logfile = XSTRDUP (MTYPE_HOST, fname);
+#if defined(HAVE_CUMULUS)
+ if (zlog_default->maxlvl[ZLOG_DEST_SYSLOG] != ZLOG_DISABLED)
+ zlog_default->maxlvl[ZLOG_DEST_SYSLOG] = ZLOG_DISABLED;
+#endif
return CMD_SUCCESS;
}