Skip to content

Commit 4370d05

Browse files
committed
Fix logging error
1 parent dd5c150 commit 4370d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websocket_server/websocket_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def handshake(self):
254254
if key:
255255
key = key.group(1)
256256
else:
257-
logging.warning("Client tried to connect but was missing a key")
257+
logger.warning("Client tried to connect but was missing a key")
258258
self.keep_alive = False
259259
return
260260
response = self.make_handshake_response(key)
@@ -285,7 +285,7 @@ def encode_to_UTF8(data):
285285
try:
286286
return data.encode('UTF-8')
287287
except UnicodeEncodeError as e:
288-
logging.error("Could not encode data to UTF-8 -- %s" % e)
288+
logger.error("Could not encode data to UTF-8 -- %s" % e)
289289
return False
290290
except Exception as e:
291291
raise(e)

0 commit comments

Comments
 (0)