Skip to content

Commit 00f169c

Browse files
authored
Merge pull request tornadoweb#2374 from a-pertsev/master
Use `log_exception` method in WebSocketProtocol instead of custom logging
2 parents 527e6c3 + 5e59d0b commit 00f169c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tornado/websocket.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import base64
2222
import hashlib
2323
import os
24+
import sys
2425
import struct
2526
import tornado.escape
2627
import tornado.web
@@ -512,8 +513,7 @@ def _run_callback(self, callback, *args, **kwargs):
512513
try:
513514
result = callback(*args, **kwargs)
514515
except Exception:
515-
app_log.error("Uncaught exception in %s",
516-
getattr(self.request, 'path', None), exc_info=True)
516+
self.handler.log_exception(*sys.exc_info())
517517
self._abort()
518518
else:
519519
if result is not None:

0 commit comments

Comments
 (0)