Fix Move back error log
@@ -183,8 +183,6 @@ public abstract class RoutingContextImplBase implements RoutingContextInternal {
}
private void handleInHandlerRuntimeFailure(RouterImpl router, boolean failed, Throwable t) {
- LOG.error("Unhandled exception in router", t);
-
if (!failed) {
if (LOG.isTraceEnabled()) {
LOG.trace("Failing the routing");
@@ -200,6 +198,8 @@ public abstract class RoutingContextImplBase implements RoutingContextInternal {
}
protected void unhandledFailure(int statusCode, Throwable failure, RouterImpl router) {
+ LOG.error("Unhandled exception in router", failure);
+
int code = statusCode != -1 ?
statusCode :
(failure instanceof HttpException) ?
