mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
ApiListener: Reorder logging in ApiTimerHandler()
This commit is contained in:
parent
e062ceb901
commit
9f84c1516e
@ -1021,6 +1021,10 @@ void ApiListener::ApiTimerHandler()
|
||||
maxTs = client->GetTimestamp();
|
||||
}
|
||||
|
||||
Log(LogNotice, "ApiListener")
|
||||
<< "Setting log position for identity '" << endpoint->GetName() << "': "
|
||||
<< Utility::FormatDateTime("%Y/%m/%d %H:%M:%S", ts);
|
||||
|
||||
for (const JsonRpcConnection::Ptr& client : endpoint->GetClients()) {
|
||||
if (client->GetTimestamp() == maxTs) {
|
||||
try {
|
||||
@ -1033,10 +1037,6 @@ void ApiListener::ApiTimerHandler()
|
||||
client->Disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
Log(LogNotice, "ApiListener")
|
||||
<< "Setting log position for identity '" << endpoint->GetName() << "': "
|
||||
<< Utility::FormatDateTime("%Y/%m/%d %H:%M:%S", ts);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user