Re: Client debugging and rados_conf_set()

2015-02-25 Thread Pete Zaitcev
On Tue, 24 Feb 2015 21:36:07 -0800 (PST)
Sage Weil s...@newdream.net wrote:

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
--
To unsubscribe from this list: send the line unsubscribe ceph-devel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Client debugging and rados_conf_set()

2015-02-24 Thread Sage Weil
On Tue, 24 Feb 2015, Pete Zaitcev wrote:
 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?

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
--
To unsubscribe from this list: send the line unsubscribe ceph-devel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Client debugging and rados_conf_set()

2015-02-24 Thread Pete Zaitcev
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
--
To unsubscribe from this list: send the line unsubscribe ceph-devel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html