Fix logging of messages that are binary before closing their connection (#25361)

pull/25801/head
Emelia Smith 2023-06-10 18:24:37 +02:00 committed by Claire
parent 6f819c7071
commit e4bff6cd76
1 changed files with 1 additions and 1 deletions

View File

@ -1090,7 +1090,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;
}