Skip to content

Commit

Permalink
Add logger via dependency injection
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-griffin committed Dec 12, 2024
1 parent e4c0cfc commit 1b3cda5
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def lambda_handler(event, context):
logger.error("Unable to determine SecretId.")
raise ValueError("Unable to determine SecretId.")

rotator = SecretRotator()
rotator = SecretRotator(logger=logger)

if step == "createSecret":
logger.info("Entered createSecret step")
Expand Down
Loading

0 comments on commit 1b3cda5

Please sign in to comment.