From 9376e092c415e38c2a0fc9f804899e6539779b38 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 1 Nov 2019 13:32:40 -0400 Subject: [PATCH] improve wallet server log format --- torba/torba/server/server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/torba/torba/server/server.py b/torba/torba/server/server.py index 4281dd648..188e243a2 100644 --- a/torba/torba/server/server.py +++ b/torba/torba/server/server.py @@ -68,6 +68,11 @@ class Server: def __init__(self, env): self.env = env self.log = logging.getLogger(__name__).getChild(self.__class__.__name__) + console_handler = logging.StreamHandler() + console_handler.setFormatter( + logging.Formatter("%(asctime)s %(levelname)-8s %(name)s:%(lineno)d: %(message)s") + ) + self.log.addHandler(console_handler) if self.env.loggly_token: self.log.addHandler(get_loggly_handler('wallet-server', self.env.loggly_token)) self.shutdown_event = asyncio.Event()