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