mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Only log if it took longer than 100 ms
This commit is contained in:
parent
01b80e754a
commit
25cfd48f87
@ -1246,8 +1246,10 @@ void TCPHandler::sendProfileEvents()
|
||||
state.profile_events_block_out->write(block);
|
||||
out->next();
|
||||
|
||||
LOG_TRACE(log, "Sending profile events block with {} rows, {} bytes took {} milliseconds",
|
||||
block.rows(), block.bytes(), stopwatch.elapsedMilliseconds());
|
||||
auto elapsed_milliseconds = stopwatch.elapsedMilliseconds();
|
||||
if (elapsed_milliseconds > 100)
|
||||
LOG_DEBUG(log, "Sending profile events block with {} rows, {} bytes took {} milliseconds",
|
||||
block.rows(), block.bytes(), elapsed_milliseconds);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user