diff --git a/daphne/server.py b/daphne/server.py index f441285..0ffa3ca 100755 --- a/daphne/server.py +++ b/daphne/server.py @@ -283,13 +283,8 @@ class Server(object): # Protocol is asking the server to exit (likely during test) self.stop() else: - exception_output = "{}\n{}{}".format( - exception, - "".join(traceback.format_tb(exception.__traceback__)), - " {}".format(exception), - ) logger.error( - "Exception inside application: %s", exception_output + "Exception inside application: %s", exception.__repr__, stack_info=True ) if not disconnected: protocol.handle_exception(exception)