mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-03-16 22:40:24 +00:00
Include exception info in logger.error logging call.
This commit is contained in:
parent
c4403c3a98
commit
da70e10857
1 changed files with 9 additions and 1 deletions
|
|
@ -300,7 +300,15 @@ class DDPWebSocketApplication(geventwebsocket.WebSocketApplication):
|
|||
data['detail'] = detail
|
||||
if kwargs:
|
||||
data.update(kwargs)
|
||||
self.logger.error('! %s %r', self, data)
|
||||
record = {
|
||||
'exc_info': sys.exc_info(),
|
||||
'extra': {
|
||||
'request': this.request,
|
||||
},
|
||||
}
|
||||
if record['exc_info'] == (None, None, None):
|
||||
del record['exc_info']
|
||||
self.logger.error('! %s %r', self, data, exc_info=exc_info, **record)
|
||||
self.reply(msg, **data)
|
||||
|
||||
def recv_connect(self, version=None, support=None, session=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue