From c81f59583cf35dabbe58621042b334b9d8cf40b0 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Sat, 10 Jun 2023 18:24:37 +0200 Subject: [PATCH] Fix logging of messages that are binary before closing their connection (#25361) --- streaming/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streaming/index.js b/streaming/index.js index 4b2607ed9..9b43112d2 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -1209,7 +1209,7 @@ const startServer = async () => { ws.on('message', (data, isBinary) => { if (isBinary) { - log.debug('Received binary data, closing connection'); + log.warn('socket', 'Received binary data, closing connection'); ws.close(1003, 'The mastodon streaming server does not support binary messages'); return; }