Skip to content

Commit d2be0c0

Browse files
author
Alexander Smirnov
committed
Add leading zeros to the milliseconds part of a log timestamp
1 parent f4dc1e1 commit d2be0c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awslambdaric/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def run(app_root, handler, lambda_runtime_api_addr):
394394
logger_handler = LambdaLoggerHandler(log_sink)
395395
logger_handler.setFormatter(
396396
logging.Formatter(
397-
"[%(levelname)s]\t%(asctime)s.%(msecs)dZ\t%(aws_request_id)s\t%(message)s\n",
397+
"[%(levelname)s]\t%(asctime)s.%(msecs)03dZ\t%(aws_request_id)s\t%(message)s\n",
398398
"%Y-%m-%dT%H:%M:%S",
399399
)
400400
)

0 commit comments

Comments
 (0)