mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Update SystemLog.h
This commit is contained in:
parent
2f32c0e9d2
commit
9b543dec5c
@ -80,9 +80,9 @@ public:
|
||||
*/
|
||||
void add(const LogElement & element)
|
||||
{
|
||||
/// Without try we could lock here in case of queue overflow.
|
||||
if (!queue.tryPush({false, element}, 1000))
|
||||
LOG_ERROR(log, "SystemLog queue overloaded, loosing record " << element.name());
|
||||
/// Without try we could block here in case of queue overflow.
|
||||
if (!queue.tryPush({false, element}))
|
||||
LOG_ERROR(log, "SystemLog queue is full");
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user