Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
Why is the SourceObject field always "GlobalLogger" when I log a Completion or Exception?
Due to the current implementation of the Error System, there is no easy way to fill correctly(and transparently) the SourceObject field in the ErrorTraces.
If you really need that field set, you can always do:
err.getErrorTraceHelper()->setSourceObject("anystring");
Given that err
is of type *CompletionImpl (a completion). Be aware that SourceObject can be set just on completions that contain error trace (i.e. error completions)!
If err
is a *ExImpl (an exception), then:
err.setSourceObject("anystring");
Then you should be able to call the log method of your exception or completion and have the correct SourceObject. -- NicolasBarriga - 04 Apr 2007