Adding websocket log message on close
This commit is contained in:
@ -561,6 +561,7 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col
|
|||||||
|
|
||||||
if (websocket) {
|
if (websocket) {
|
||||||
websocket_handler(socket, &pipes);
|
websocket_handler(socket, &pipes);
|
||||||
|
log(prefix, "\x1B[1mClosing WebSocket (" + formatTime(req.getDuration()) + ")\x1B[0m");
|
||||||
}
|
}
|
||||||
} catch (char *msg) {
|
} catch (char *msg) {
|
||||||
HttpStatusCode status = req.getStatusCode();
|
HttpStatusCode status = req.getStatusCode();
|
||||||
|
Reference in New Issue
Block a user