Changed all messages to 10 that are printed repeatedly in an idle cluster.
This makes debugging Python modules easier as the log
is no longer pullued by mgr core messages.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
const std::string global_key = PyModule::config_prefix
+ module_name + "/" + key;
- dout(4) << __func__ << " key: " << global_key << dendl;
+ dout(20) << " key: " << global_key << dendl;
std::lock_guard lock(module_config.lock);
}
PyEval_RestoreThread(tstate);
if (prefix.size()) {
- dout(4) << __func__ << " [" << prefix << "/]" << key << " not found "
+ dout(10) << " [" << prefix << "/]" << key << " not found "
<< dendl;
} else {
- dout(4) << __func__ << " " << key << " not found " << dendl;
+ dout(10) << " " << key << " not found " << dendl;
}
Py_RETURN_NONE;
}
m->get_connection()->get_peer_type(),
m->daemon_name);
- dout(4) << "from " << m->get_connection() << " " << key << dendl;
+ dout(10) << "from " << m->get_connection() << " " << key << dendl;
_send_configure(m->get_connection());
}
key.second = m->daemon_name;
- dout(4) << "from " << m->get_connection() << " " << key << dendl;
+ dout(10) << "from " << m->get_connection() << " " << key << dendl;
if (m->get_connection()->get_peer_type() == entity_name_t::TYPE_CLIENT &&
m->service_name.empty()) {
// Clients should not be sending us stats unless they are declaring
// themselves to be a daemon for some service.
- dout(4) << "rejecting report from non-daemon client " << m->daemon_name
+ dout(10) << "rejecting report from non-daemon client " << m->daemon_name
<< dendl;
m->get_connection()->mark_down();
return true;
bool Mgr::ms_dispatch2(const ref_t<Message>& m)
{
- dout(4) << *m << dendl;
+ dout(10) << *m << dendl;
std::lock_guard l(lock);
switch (m->get_type()) {
void MgrStandby::send_beacon()
{
ceph_assert(lock.is_locked_by_me());
- dout(4) << state_str() << dendl;
+ dout(20) << state_str() << dendl;
std::list<PyModuleRef> modules = py_module_registry.get_modules();
bool MgrStandby::ms_dispatch2(const ref_t<Message>& m)
{
std::lock_guard l(lock);
- dout(4) << state_str() << " " << *m << dendl;
+ dout(10) << state_str() << " " << *m << dendl;
if (m->get_type() == MSG_MGR_MAP) {
handle_mgr_map(ref_cast<MMgrMap>(m));
std::lock_guard l(module_config.lock);
if (!v.empty()) {
- dout(4) << "Loaded module_config entry " << k << ":" << v << dendl;
+ dout(10) << "Loaded module_config entry " << k << ":" << v << dendl;
module_config.config[k] = v;
} else {
module_config.config.erase(k);
]
def wait(self, completions):
- self.log.info("wait: completions={0}".format(completions))
+ if completions:
+ self.log.info("wait: completions={0}".format(completions))
incomplete = False