mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Merge pull request #10237 from Icinga/log-connected-endpoint-connection-attempts-214
ApiListener: Log connection attempts from an already connected client
This commit is contained in:
commit
eb32283751
@ -843,9 +843,11 @@ void ApiListener::NewClientHandlerInternal(
|
|||||||
Log(LogNotice, "ApiListener", "New JSON-RPC client");
|
Log(LogNotice, "ApiListener", "New JSON-RPC client");
|
||||||
|
|
||||||
if (endpoint && endpoint->GetConnected()) {
|
if (endpoint && endpoint->GetConnected()) {
|
||||||
Log(LogNotice, "ApiListener")
|
Log(LogInformation, "ApiListener")
|
||||||
<< "Ignoring JSON-RPC connection " << conninfo
|
<< "Ignoring JSON-RPC connection " << conninfo
|
||||||
<< ". We're already connected to Endpoint '" << endpoint->GetName() << "'.";
|
<< ". We're already connected to Endpoint '" << endpoint->GetName()
|
||||||
|
<< "' (last message sent: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S", endpoint->GetLastMessageSent())
|
||||||
|
<< ", last message received: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S", endpoint->GetLastMessageReceived()) << ").";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user