mirror of https://github.com/Icinga/icinga2.git
IDO-Logging: Don't log when not connected
This commit is contained in:
parent
82c4d58d14
commit
d377996176
|
@ -245,6 +245,9 @@ void DbConnection::CleanUpHandler()
|
|||
|
||||
void DbConnection::LogStatsHandler()
|
||||
{
|
||||
if (!GetConnected())
|
||||
return;
|
||||
|
||||
auto pending = m_PendingQueries.load();
|
||||
|
||||
auto now = Utility::GetTime();
|
||||
|
|
Loading…
Reference in New Issue