Re: how to print bad crc data message body to logfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



how to redirect the data.hexdump() to a log file,it's print to screen
when we use "tail -f /var/log/ceph/ceph-osd.x.log"  dynamically
monitor the log file. i'm not familiar with ceph's debug system code,
so where should i begin?

2015-05-13 1:06 GMT+08:00 huang jun <hjwsm1989@xxxxxxxxx>:
> ah, it's also at level 20 in v0.80.7,
> the control code is:
>
> ldout(cct, 20) << " ";
>  data.hexdump(*_dout);
>  *_dout << dendl;
>
> _dout is a ostream pointer, i think it should print to stdout or stderr,
> but seems i was wrong.
>
> 2015-05-13 0:57 GMT+08:00 Sage Weil <sage@xxxxxxxxxxxx>:
>> On Wed, 13 May 2015, huang jun wrote:
>>> we use 0.80.7 version, do you mean the newer ceph release will print
>>> the message content to log file if we set debug_ms=20?
>>
>> I mean I verified that current master prints at level 20, but maybe 0.80.7
>> doesn't.. I didn't check :)
>>
>>>
>>> 2015-05-13 0:37 GMT+08:00 Sage Weil <sage@xxxxxxxxxxxx>:
>>> > On Tue, 12 May 2015, huang jun wrote:
>>> >> hi,all
>>> >> we see the bad data crc warning and we have set debug_ms=20, but the
>>> >> message body doesn't logged into /var/log/ceph/ceph-osd.x.log file.
>>> >> Did i miss something? or i need to change the buffer::list::hexdump()
>>> >> function and recompile it?
>>> >
>>> > Hrm, it should be there at level 20.  Unless that was added in a version
>>> > newer than what you're running?
>>> >
>>> > sage
>>>
>>>
>>>
>>> --
>>> thanks
>>> huangjun
>>>
>>>
>
>
>
> --
> thanks
> huangjun



-- 
thanks
huangjun
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux