Update SystemLog.h

This commit is contained in:
alexey-milovidov 2017-04-27 09:01:54 +03:00
parent 2f32c0e9d2
commit 9b543dec5c

View File

@ -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: