Skip to content

Commit

Permalink
修改日志输出格式,添加时间
Browse files Browse the repository at this point in the history
  • Loading branch information
yongjie0203 authored Aug 17, 2019
1 parent f212f20 commit 9603991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shadowsocks/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def get_config(is_local):
level = logging.INFO
verbose = config['verbose']
logging.basicConfig(level=level,
format='[%(levelname)s] %(filename)s:%(lineno)s(%(funcName)s) %(message)s',
format='[%(levelname)s] %(asctime)s %(filename)s:%(lineno)s(%(funcName)s) %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')
root = logging.getLogger()
filter_obj = logging.Filter()
Expand Down

0 comments on commit 9603991

Please sign in to comment.