Skip to content

Commit aebe88c

Browse files
committed
Runner: add timestamps to the logging
1 parent 4ae520a commit aebe88c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

formatchecker/runner.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def daemon_mode(timeout: int, after: date, submit: bool = False):
7373
parser.add_argument('--daemon', action="store_true", help="submit")
7474
parser.add_argument('--submit', action="store_true", help="submit the reviews to gerrit")
7575
args = parser.parse_args()
76-
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
76+
logging.basicConfig(format='%(asctime)s %(levelname)-8s %(message)s', stream=sys.stdout,
77+
datefmt="%Y-%m-%d %H:%M:%S", level=logging.INFO)
7778
start_date = date.today() - timedelta(days=args.days)
7879
if args.daemon:
7980
daemon_mode(args.timeout, start_date, args.submit)

0 commit comments

Comments
 (0)