• Logging an event duplicates the message

    By Michael Residori 10 years ago

    I was wanting to do a bit of verbose logging for an event. When I log an event the event message also gets stored in the Error Msg field. I'm using this call OpenLogItem.logEvent(null, msg, Level.INFO, null); to log the event. Since I'm only logging an event it would be nice if the error message was not stored.

    It looks like it was coded this way on purpose

            if ("".equals(errMsg)) {
                errMsg = getMessage();
            }
    

    so I put this in as a feature request instead of a defect :-).

    • By Paul S Withers 10 years ago

      Yes, it's deliberate to log it in ErrorMsg, so it's visible from the view - I'm lazy and don't want to always open the document! ;-) .

      But I'll look at adding an Xsp property to stop it.