Showing
1 changed file
with
1 additions
and
6 deletions
... | ... | @@ -117,11 +117,6 @@ public abstract class BaseController { |
117 | 117 | @Autowired |
118 | 118 | protected RelationService relationService; |
119 | 119 | |
120 | - @ExceptionHandler(Exception.class) | |
121 | - public void handleException(Exception ex, HttpServletResponse response) { | |
122 | - errorResponseHandler.handle(ex, response); | |
123 | - } | |
124 | - | |
125 | 120 | @ExceptionHandler(ThingsboardException.class) |
126 | 121 | public void handleThingsboardException(ThingsboardException ex, HttpServletResponse response) { |
127 | 122 | errorResponseHandler.handle(ex, response); |
... | ... | @@ -133,7 +128,7 @@ public abstract class BaseController { |
133 | 128 | |
134 | 129 | private ThingsboardException handleException(Exception exception, boolean logException) { |
135 | 130 | if (logException) { |
136 | - log.error("Error [{}]", exception.getMessage()); | |
131 | + log.error("Error [{}]", exception.getMessage(), exception); | |
137 | 132 | } |
138 | 133 | |
139 | 134 | String cause = ""; | ... | ... |