mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +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();
|
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()) {
|
for (const JsonRpcConnection::Ptr& client : endpoint->GetClients()) {
|
||||||
if (client->GetTimestamp() == maxTs) {
|
if (client->GetTimestamp() == maxTs) {
|
||||||
try {
|
try {
|
||||||
@ -1033,10 +1037,6 @@ void ApiListener::ApiTimerHandler()
|
|||||||
client->Disconnect();
|
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