mirror of https://github.com/Icinga/icinga2.git
Merge pull request #10207 from Icinga/log-connected-endpoint-connection-attempts
ApiListener: Log connection attempts from an already connected client prominently
This commit is contained in:
commit
10775f4481
|
@ -843,9 +843,11 @@ void ApiListener::NewClientHandlerInternal(
|
|||
Log(LogNotice, "ApiListener", "New JSON-RPC client");
|
||||
|
||||
if (endpoint && endpoint->GetConnected()) {
|
||||
Log(LogNotice, "ApiListener")
|
||||
Log(LogInformation, "ApiListener")
|
||||
<< "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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue