mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
IDO-Logging: Don't log when not connected
This commit is contained in:
parent
070c42acab
commit
bd8339ed46
@ -245,6 +245,9 @@ void DbConnection::CleanUpHandler()
|
|||||||
|
|
||||||
void DbConnection::LogStatsHandler()
|
void DbConnection::LogStatsHandler()
|
||||||
{
|
{
|
||||||
|
if (!GetConnected())
|
||||||
|
return;
|
||||||
|
|
||||||
auto pending = m_PendingQueries.load();
|
auto pending = m_PendingQueries.load();
|
||||||
|
|
||||||
auto now = Utility::GetTime();
|
auto now = Utility::GetTime();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user