]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: send cluster log messages to 'cluster' channel by default 4207/head
authorSage Weil <sage@redhat.com>
Fri, 27 Mar 2015 22:35:21 +0000 (15:35 -0700)
committerSage Weil <sage@redhat.com>
Fri, 27 Mar 2015 22:35:21 +0000 (15:35 -0700)
commitccc08397e62477b7fb54f21f08c21ec38041eb2e
treeb23033181755d4ba50c9599af353e700f5cca9ca
parent59143d141ccb4d36e8ede878c0e317ff8a5f6932
common: send cluster log messages to 'cluster' channel by default

The CLOG_CHANNEL_DEFAULT constant was being abused for two purposes:

 - the default channel to log messages to
 - the name of the config option key in the key/value pair string that is
   used for the default option, e.g. "default=true foo=false bar=false"

Fix this by making the config option key CLOG_CONFIG_DEFAULT_KEY and
replacing throughout, and changing CLOG_CHANNEL_DEFAULT to "cluster" (as
it should be and has been historically).

Fixes: #11177
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/LogClient.cc
src/common/LogEntry.h
src/mon/LogMonitor.cc
src/mon/LogMonitor.h