mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
websocketserver: Log disconnect code and reason on disconnects
No clue why I wasn't doing this before.
This commit is contained in:
parent
2f549b82a3
commit
b07dce821a
@ -344,7 +344,8 @@ void WebSocketServer::onClose(websocketpp::connection_hdl hdl)
|
|||||||
emit ClientDisconnected(state, conn->get_local_close_code());
|
emit ClientDisconnected(state, conn->get_local_close_code());
|
||||||
|
|
||||||
// Log disconnection
|
// Log disconnection
|
||||||
blog(LOG_INFO, "[WebSocketServer::onClose] WebSocket client %s has disconnected", remoteAddress.c_str());
|
blog(LOG_INFO, "[WebSocketServer::onClose] WebSocket client `%s` has disconnected with code `%d` and reason: %s",
|
||||||
|
remoteAddress.c_str(), conn->get_local_close_code(), conn->get_local_close_reason().c_str());
|
||||||
|
|
||||||
// Get config for tray notification
|
// Get config for tray notification
|
||||||
auto conf = GetConfig();
|
auto conf = GetConfig();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user