I thought by doing:
appenders {
...
'null' name: 'stacktrace'
...
}
I would see no exceptions in my log. I still see exceptions being logged in GrailsExceptionResolver in my log.
ERROR errors.GrailsExceptionResolver - Exception occurred when processing request: [GET] /api//products - parameters:
But for some exceptions, I don't want to log a stacktrace. These are kind of benign things but because of legacy code, I can't just remove them as exceptions as they use in deep call stacks.
So I just need to control the way Grails is logging every exception.
Any tips?