mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Fix misleading TLS handshake error logging
The log message on TLS handshake errors always stated that a client handshake failed, even if if the connection was acting as the server. The commit changes it so that the actual role is taken into account.
This commit is contained in:
parent
647b2b2101
commit
1b33451665
1 changed files with 2 additions and 1 deletions
|
|
@ -743,7 +743,8 @@ void ApiListener::NewClientHandlerInternal(
|
|||
}
|
||||
|
||||
Log(LogCritical, "ApiListener")
|
||||
<< "Client TLS handshake failed (" << conninfo << "): " << ec.message();
|
||||
<< (role == RoleClient ? "Client" : "Server")
|
||||
<< " TLS handshake failed (" << conninfo << "): " << ec.message();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue