Browse Source

add file name and line number in log

dev
BreakWa11 9 years ago
parent
commit
9eefd27152
  1. 2
      shadowsocks/shell.py

2
shadowsocks/shell.py

@ -283,7 +283,7 @@ def get_config(is_local):
level = logging.INFO level = logging.INFO
verbose = config['verbose'] verbose = config['verbose']
logging.basicConfig(level=level, 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') datefmt='%Y-%m-%d %H:%M:%S')
check_config(config, is_local) check_config(config, is_local)

Loading…
Cancel
Save