Fix logging of messages that are binary before closing their connection (#25361)
This commit is contained in:
parent
f94aee0ed5
commit
42bffbc337
1 changed files with 1 additions and 1 deletions
|
@ -1200,7 +1200,7 @@ const startWorker = async (workerId) => {
|
||||||
|
|
||||||
ws.on('message', (data, isBinary) => {
|
ws.on('message', (data, isBinary) => {
|
||||||
if (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');
|
ws.close(1003, 'The mastodon streaming server does not support binary messages');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue