From 9eefd27152a6d98757143cc73d47fc79ca6b9956 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Mon, 30 May 2016 01:39:42 +0800 Subject: [PATCH] add file name and line number in log --- shadowsocks/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/shell.py b/shadowsocks/shell.py index babac98..ed0cc42 100644 --- a/shadowsocks/shell.py +++ b/shadowsocks/shell.py @@ -283,7 +283,7 @@ def get_config(is_local): level = logging.INFO verbose = config['verbose'] logging.basicConfig(level=level, - format='%(asctime)s %(levelname)-8s %(message)s', + format='%(asctime)s %(levelname)-8s %(filename)s:%(lineno)s %(message)s', datefmt='%Y-%m-%d %H:%M:%S') check_config(config, is_local)