mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-05-03 21:24:47 +00:00
Show stack trace on console by default to further debugging efforts.
This commit is contained in:
parent
5f43879f74
commit
ea440356a3
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
"""Django DDP API, Collections, Cursors and Publications."""
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
from __future__ import absolute_import, unicode_literals, print_function
|
||||
|
||||
# standard library
|
||||
import collections
|
||||
|
|
@ -580,6 +580,7 @@ class DDP(APIMixin):
|
|||
this.send_msg(msg)
|
||||
except Exception, err: # log error+stack trace -> pylint: disable=W0703
|
||||
details = traceback.format_exc()
|
||||
print(details)
|
||||
this.ws.logger.error(err, exc_info=True)
|
||||
msg = {
|
||||
'msg': 'result',
|
||||
|
|
|
|||
Loading…
Reference in a new issue