Skip to content

Commit

Permalink
Runner: add timestamps to the logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nielx committed Mar 24, 2024
1 parent 4ae520a commit aebe88c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion formatchecker/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def daemon_mode(timeout: int, after: date, submit: bool = False):
parser.add_argument('--daemon', action="store_true", help="submit")
parser.add_argument('--submit', action="store_true", help="submit the reviews to gerrit")
args = parser.parse_args()
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
logging.basicConfig(format='%(asctime)s %(levelname)-8s %(message)s', stream=sys.stdout,
datefmt="%Y-%m-%d %H:%M:%S", level=logging.INFO)
start_date = date.today() - timedelta(days=args.days)
if args.daemon:
daemon_mode(args.timeout, start_date, args.submit)
Expand Down

0 comments on commit aebe88c

Please sign in to comment.