mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
fix log level in debug code
This commit is contained in:
parent
922a14eaf1
commit
532d80e20b
@ -361,13 +361,16 @@ private:
|
||||
|
||||
std::istream & receiveResponse(Poco::Net::HTTPResponse & response) override
|
||||
{
|
||||
int originKA = Session::getKeepAliveTimeout().totalSeconds();
|
||||
|
||||
std::istream & result = Session::receiveResponse(response);
|
||||
result.exceptions(std::ios::badbit);
|
||||
|
||||
// that line is for temporary debug, will be removed
|
||||
if (response.has(Poco::Net::HTTPMessage::CONNECTION_KEEP_ALIVE))
|
||||
LOG_WARNING(log, "received keep alive header: {}",
|
||||
response.get(Poco::Net::HTTPMessage::CONNECTION_KEEP_ALIVE, Poco::Net::HTTPMessage::EMPTY));
|
||||
LOG_INFO(log, "received keep alive header: {}, original was {}",
|
||||
response.get(Poco::Net::HTTPMessage::CONNECTION_KEEP_ALIVE, Poco::Net::HTTPMessage::EMPTY),
|
||||
originKA);
|
||||
|
||||
response_stream = &result;
|
||||
response_stream_completed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user