Skip to content

Commit

Permalink
Fix logging of messages that are binary before closing their connecti…
Browse files Browse the repository at this point in the history
…on (#25361)
  • Loading branch information
ThisIsMissEm committed Jun 10, 2023
1 parent 4c9406b commit c81f595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streaming/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c81f595

Please sign in to comment.