1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-29 07:18:48 +09:00

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

This commit is contained in:
Emelia Smith 2023-06-10 18:24:37 +02:00 committed by GitHub
parent 4c9406bdb0
commit c81f59583c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}