Skip to content

Commit

Permalink
structured logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hummerdmag committed Aug 18, 2024
1 parent ead1789 commit 92bfd61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions storage/dynamodb/invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ func (is *InviteStorage) ArchiveAllByEmail(email string) error {
if err != nil {
is.logger.Error("Error querying for invites",
logging.FieldError, err)

return ErrorInternalError
}

Expand Down
1 change: 1 addition & 0 deletions storage/dynamodb/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func (us *UserStorage) UserByID(id string) (model.User, error) {
if err != nil {
us.logger.Error("Error getting item from DynamoDB",
logging.FieldError, err)

return model.User{}, ErrorInternalError
}
if result.Item == nil {
Expand Down

0 comments on commit 92bfd61

Please sign in to comment.