Add caught exceptions to event returned from action ?

Tom Zeller tzeller at dragonacea.biz
Thu Feb 6 20:08:35 EST 2014


>>>In Actions, caught exceptions should be added to the returned Event,
>>>correct ?
>>
>>I don't think there's a systematic way to do it, which is why I captured
>>exceptions in the context tree where it seemed valuable. In most cases,
>>it's not valuable, it's just an error to log. If we need to propagate the
>>"type" of error, I think we should try to do that with event IDs, not by
>>propagating the exception.
>
> This reminds me, as a more general comment, I've been pretty studiously
> avoiding logging at ERROR for things that are actually runtime conditions
> that might happen. I see that more as a WARN. I don't like ERROR being
> used for things caused by external conditions/factors like a user hitting
> a back button. This is a major hassle with the IdP logging today. ERROR
> should mean "hey, check this out and fix it". IMHO at least.
>
> Config time mistakes, ERROR works fine though.

Okay. At some point we should document and standardize logging
conventions. Identifying runtime vs configuration errors in this
project is not always clear to me, but I get the general idea.


More information about the dev mailing list