Skip to content

Commit

Permalink
fix(socket): update logging category for websocket connection closure
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Jan 11, 2025
1 parent 6d2893b commit 25163a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/express/routes/socket/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function send(socket: WebSocket, op: ServerSocketOpcodes, d?: any): void {
function disconnect(socket: WebSocket, id: string | null, error: string): void {
if (id) {
ActiveSockets.delete(id);
logger.log('database', `Websocket connection closed: ${id}`);
logger.log('socket', `Websocket connection closed: ${id}`);
}

send(socket, Opcodes.DISCONNECT, { error });
Expand Down

0 comments on commit 25163a5

Please sign in to comment.