Menu

#290 Set level to ERROR for resultcodes

open
nobody
Logdoc (14)
5
2009-06-10
2009-06-10
janwillemb
No

When a resultcode is returned, the log level is always INFO. IMO, resultcodes (custom or native) always imply an error and should be logged by the framework as such.

Discussion

  • Anthony Goubard

    Anthony Goubard - 2009-06-11

    Before being called resultcode, the name was errorcode. The log level being info is (as far as I can remember) a common decision with Operation. resultcode like invalid password, failed login are normal for the application and Operation should not be warned by these.

    That why there are 2 types of resultcode: functional and technical.
    The default is functional (logged at INFO)
    You can change it by <resultcode name="..." type"technical">...</resultcode>
    Then the CAPI will log the received error at WARN and/or ERROR level.

    [TODO for me: check that it's described in the documentation]

    Hope that answer your request.

     
  • janwillemb

    janwillemb - 2009-06-12

    It does for the custom resultcodes, thanks. However, is there some way to enforce this for the native codes?

     
  • Anthony Goubard

    Anthony Goubard - 2009-06-17

    I think that's correct for _InternalError and _InvalidResponse, for the others I don't think so.

     

Log in to post a comment.