mirror of
https://github.com/django/daphne.git
synced 2025-07-27 07:29:46 +03:00
Fix wrong context
Changed in version 3.5: The exc_info parameter can now accept exception instances.
This commit is contained in:
parent
275e508e1d
commit
0ea4cffbb3
|
@ -284,8 +284,8 @@ class Server(object):
|
||||||
else:
|
else:
|
||||||
logger.error(
|
logger.error(
|
||||||
"Exception inside application: %s",
|
"Exception inside application: %s",
|
||||||
exception.__repr__(),
|
exception,
|
||||||
stack_info=True,
|
exc_info=exception,
|
||||||
)
|
)
|
||||||
if not disconnected:
|
if not disconnected:
|
||||||
protocol.handle_exception(exception)
|
protocol.handle_exception(exception)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user