Skip to content

Commit

Permalink
Merge pull request #52 from shinesolutions/fix-50/improve_ddb_error_l…
Browse files Browse the repository at this point in the history
…ogging

Improved DDB Client error logging #50
  • Loading branch information
mbloch1986 authored Jul 28, 2023
2 parents b6bb01f + 732e47b commit 6f024ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated Offline Snapshot to support offline backup & offline compaction of preview architecture
- Updated Makefile target `ci` to run tests
- Improved DDB Client error logging #50

## 1.9.1 - 2020-11-16
### Fixed
Expand Down
6 changes: 5 additions & 1 deletion lambda/aem_offline_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,11 @@ def manage_lock_for_environment(table_name, lock, action):
)
logger.info("DynamoDB Table %s locked successfully.", table_name)
succeeded = True
except botocore.exceptions.ClientError:
except botocore.exceptions.ClientError as err:
logger.error(
"Error Updating Dynamo %s",
str(err),
)
succeeded = False

elif action == "unlock":
Expand Down

0 comments on commit 6f024ca

Please sign in to comment.