forward RTL_CONTEXT_foo logging to SAL_INFO in default debugging

Stephan Bergmann sbergman at redhat.com
Mon Apr 22 04:04:30 PDT 2013


On 04/17/2013 04:45 PM, Bjoern Michaelsen wrote:
> On Wed, Apr 17, 2013 at 04:13:15PM +0200, Stephan Bergmann wrote:
>> What good is the intermediate move?  That is, was there at least one
>> situation in which it would have helped your debugging if an
>> existing RTL_LOGFILE_* call had been behaving like SAL_LOG?
>
> Yes, there had been: I was trying to wrap my haed around the
> observer-pattern-gone-bad of vcl-callbacks going into
> framework/uielement/menubarmanager.cxx to see if there is something going wrong
> with the order of execution. RTL_LOGFILE provides some helpful ad-hoc hints
> there without manually setting bazillion breakpoints or adding SAL_INFOs there.

I think Tor's comment is to the point.  Ultimately, we'll want 
SAL_WARN/SAL_INFO enabled in more builds, so we shouldn't get too 
carried away with adding too many SAL_INFOs for tracing purposes.

Stephan



More information about the LibreOffice mailing list