Log unknown websocket commands at info instead of error (#72336)

This commit is contained in:
Zac West 2022-05-22 22:41:51 -07:00 committed by GitHub
parent 4dbc1ed7a7
commit 20960e182d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ class ActiveConnection:
return
if msg["type"] not in handlers:
self.logger.error("Received invalid command: {}".format(msg["type"]))
self.logger.info("Received unknown command: {}".format(msg["type"]))
self.send_message(
messages.error_message(
cur_id, const.ERR_UNKNOWN_COMMAND, "Unknown command."