]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: make `log` command send messages to default channel
authorJohn Spray <john.spray@redhat.com>
Thu, 29 Jun 2017 15:59:53 +0000 (11:59 -0400)
committerJohn Spray <john.spray@redhat.com>
Thu, 29 Jun 2017 15:59:53 +0000 (11:59 -0400)
...rather than leaving channel blank.  This means that
people watching the main "cluster" channel will see
the log messages sent using `log`.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/LogMonitor.cc

index 319196b6c5eaad837ae19605165c7d0ec7965e3c..20fc1332763a37bd34577011010a12e82b765c34 100644 (file)
@@ -499,6 +499,7 @@ bool LogMonitor::prepare_command(MonOpRequestRef op)
     le.stamp = m->get_recv_stamp();
     le.seq = 0;
     le.prio = CLOG_INFO;
+    le.channel = CLOG_CHANNEL_DEFAULT;
     le.msg = str_join(logtext, " ");
     pending_summary.add(le);
     pending_summary.prune(g_conf->mon_log_max_summary);