Not only send the exception to the client but also log it

Otherwise there will be only tricky "Unknown packet" exception after
exception during handling INSERT queries.
This commit is contained in:
Azat Khuzhin 2020-08-27 01:43:47 +03:00
parent 2fce2b21a8
commit d53bbd3394

View File

@ -351,6 +351,8 @@ void TCPHandler::runImpl()
tryLogCurrentException(log, "Can't send logs to client");
}
const auto & e = *exception;
LOG_ERROR(log, "Code: {}, e.displayText() = {}, Stack trace:\n\n{}", e.code(), e.displayText(), e.getStackTraceString());
sendException(*exception, send_exception_with_stack_trace);
}
}