Skip to content

Commit

Permalink
Change logger.info to warning for exception on lifecycle put
Browse files Browse the repository at this point in the history
Also, just noting here that lifecycle rules themselves don't expire, so
we will want to clean them up periodically at:

https://us-east-1.console.aws.amazon.com/s3/management/gfw-tiles/lifecycle?bucketType=general&region=us-east-1#
  • Loading branch information
danscales committed Feb 26, 2025
1 parent 354a584 commit cea6aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/tasks/aws_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _update_lifecycle_rule(bucket, rule) -> Dict[str, Any]:
except Exception as e:
# Make sure to print out any exception, since this function is probably
# running in a background task, so any thrown exception may get lost.
logger.info(f"lifecycle exception {str(e)}, {e.__class__.__name__}, {e.args}")
logger.warning(f"lifecycle exception {str(e)}, {e.__class__.__name__}, {e.args}")
logger.info(f"Response lifecycle {response}")
return response

Expand Down

0 comments on commit cea6aef

Please sign in to comment.