Logging verbosity

mike thompson mithomps at redhat.com
Tue Dec 17 20:09:34 UTC 2013


On Dec 17, 2013, at 12:05 PM, John Sanda <jsanda at redhat.com> wrote:

> 
> On Dec 17, 2013, at 2:47 PM, Larry O'Leary <loleary at redhat.com> wrote:
> 
>> 
>> On Tue, 2013-12-17 at 20:38 +0100, Heiko W.Rupp wrote:
>>> Am 17.12.2013 um 19:00 schrieb Lukas Krejci <lkrejci at redhat.com>:
>>>> I am personally very much FOR having stacktraces in the log messages, especially in erroneous conditions like this one (i.e. IMHO almost 
>>> 
>>> If our stacktraces would only contain relevant information I would agree.
>>> 
>>> Spitting out the same 30 lines over and over again does not add any value.
>>> A lot of what is written is stuff inside java.* . Also for above case, the trace
>>> is always the same, and leads to the place you pointed out. That trace
>>> does not tell anything about the cause, which is what we would want in
>>> reality.
>>> 
>>> We may log the traces at a different level that is off by default though.
>> 
>> I would only expect to see stack traces at DEBUG level. At any log level
>> below that, I would expect the log message to provide me with the most
>> relevant information in a non-Java or non-developer context.
>> -- 
>> Larry O'Leary
>> https://plus.google.com/+LarryOLeary
>> 
> 
> I agree that in general stack traces should appear at DEBUG. Now I need to go check and see how often I violate that :)

When things are going horribly wrong, stack traces can add to the log files filling up and exacerbating the situation further such that your system is frozen and you can't even access the log files -- I've been there ;)

>> 
>> _______________________________________________
>> rhq-devel mailing list
>> rhq-devel at lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/rhq-devel
> 
> _______________________________________________
> rhq-devel mailing list
> rhq-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/rhq-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/rhq-devel/attachments/20131217/71e72c84/attachment.html>


More information about the rhq-devel mailing list