From c9bc079dc91abb03e547ff4588118e2427eb93d2 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 17 Oct 2016 11:58:03 +0300 Subject: [PATCH] gpg: add file:line to logging format --- trezor_agent/gpg/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trezor_agent/gpg/__main__.py b/trezor_agent/gpg/__main__.py index 648f7be..aae8044 100755 --- a/trezor_agent/gpg/__main__.py +++ b/trezor_agent/gpg/__main__.py @@ -88,7 +88,8 @@ def main(): args = p.parse_args() logging.basicConfig(level=logging.DEBUG if args.verbose else logging.INFO, - format='%(asctime)s %(levelname)-10s %(message)s') + format='%(asctime)s %(levelname)-10s %(message)-120s ' + '[%(filename)s:%(lineno)d]') log.warning('This GPG tool is still in EXPERIMENTAL mode, ' 'so please note that the API and features may ' 'change without backwards compatibility!')