Skip to content

Commit

Permalink
Log time of messages for publisher (#1287)
Browse files Browse the repository at this point in the history
This should make debugging publisher delays much easier.
  • Loading branch information
TimoWilken authored Jan 23, 2024
1 parent 87e0988 commit 08a1a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish/aliPublishS3
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def main():
logger = logging.getLogger()
loggerHandler = logging.StreamHandler()
logger.addHandler(loggerHandler)
loggerHandler.setFormatter(logging.Formatter('%(levelname)-5s: %(message)s'))
loggerHandler.setFormatter(logging.Formatter("%(asctime)s %(levelname)-5s: %(message)s"))
logger.setLevel(logging.DEBUG if args.debug else logging.INFO)
logging.getLogger("boto3").setLevel(logging.WARNING)
logging.getLogger("botocore").setLevel(logging.WARNING)
Expand Down

0 comments on commit 08a1a99

Please sign in to comment.