mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-28 20:50:49 +00:00
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:
parent
2fce2b21a8
commit
d53bbd3394
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user