Client debugging and rados_conf_set()
Hello:
I noticed that RadosClient.cc is full of interesting printouts, like so:
ldout(cct, 1) << "setting wanted keys" << dendl;
So, I tried to enable them by doing this:
rc = rados_conf_set(rados, "debug_rados", "20/20");
However, the above produces no output. What am I missing? How are these printouts made visible conventionally?
Thanks in advance,
-- Pete
Quoted 4 lines · Pete Zaitcev
Hello:
I noticed that RadosClient.cc is full of interesting printouts, like so:
Quoted 8 lines
ldout(cct, 1) << "setting wanted keys" << dendl;So, I tried to enable them by doing this:
rc = rados_conf_set(rados, "debug_rados", "20/20");However, the above produces no output. What am I missing? How are these printouts made visible conventionally?
Ha! I saw that on twitter but couldn't tell what you were trying to do.
log_to_stderr = true
in ceph.conf or
rados_conf_set(rados, "log_to_stderr", "true");
or
--log-to-stderr
on the command line. You may also be able to do
CEPH_ARGS="--log-to-stderr"
(although it depends on whether the binary is calling env_to_args()).
sage
Quoted 4 lines · On Tue, 24 Feb 2015 21:36:07 -0800 (PST) Sage Weil <[email protected]> wrote:
Quoted 2 lines
ldout(cct, 1) << "setting wanted keys" << dendl; rc = rados_conf_set(rados, "debug_rados", "20/20");rados_conf_set(rados, "log_to_stderr", "true");
Thanks a lot, that worked!
-- Pete