From 23e7b4d28dc94ef927f6db4e5832a45e333b252e Mon Sep 17 00:00:00 2001
From: Emelia Smith <ThisIsMissEm@users.noreply.github.com>
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 753328e54..ffb570c5b 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -1219,7 +1219,7 @@ const startWorker = async (workerId) => {
 
     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;
       }