zmon-controller
zmon-controller copied to clipboard
Log exceptions thrown by API controllers
User story
As a developer
I want controllers located in org.zalando.zmon.api
log exceptions
So that I have better visibility on problems
Explanation
Some controller classes already have @ExceptionHandler
s enabled. For instance
public class AlertDefinitionsApi extends AbstractZMonController
Where AbstractZMonController
defines a bunch of @ExceptionHandler
s
However other controller classes don't have any exception handlers, so when the exception is thrown, error message is returned to the client, but not logged by ZMON controller.