Skip to content

Commit

Permalink
Log time of messages for publisher
Browse files Browse the repository at this point in the history
This should make debugging publisher delays much easier.
  • Loading branch information
TimoWilken committed Jan 23, 2024
1 parent f3fcf1a commit 143d2e2
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 @@ -864,7 +864,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 143d2e2

Please sign in to comment.