Skip to content

Commit 3bb5baa

Browse files
committed
ApiListener: Reorder logging in ApiTimerHandler()
1 parent 0c7c7ba commit 3bb5baa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/remote/apilistener.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,10 @@ void ApiListener::ApiTimerHandler()
10211021
maxTs = client->GetTimestamp();
10221022
}
10231023

1024+
Log(LogNotice, "ApiListener")
1025+
<< "Setting log position for identity '" << endpoint->GetName() << "': "
1026+
<< Utility::FormatDateTime("%Y/%m/%d %H:%M:%S", ts);
1027+
10241028
for (const JsonRpcConnection::Ptr& client : endpoint->GetClients()) {
10251029
if (client->GetTimestamp() == maxTs) {
10261030
try {
@@ -1033,10 +1037,6 @@ void ApiListener::ApiTimerHandler()
10331037
client->Disconnect();
10341038
}
10351039
}
1036-
1037-
Log(LogNotice, "ApiListener")
1038-
<< "Setting log position for identity '" << endpoint->GetName() << "': "
1039-
<< Utility::FormatDateTime("%Y/%m/%d %H:%M:%S", ts);
10401040
}
10411041
}
10421042

0 commit comments

Comments
 (0)