Skip to content

Commit

Permalink
Error found when adding entry to clean db
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Battagel authored and Matthew Battagel committed Jan 8, 2024
1 parent 2aff210 commit 989b216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/db/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ func (pdb *PhraseDatabase) GetPhrase(key string) (phrase.Phrase, error) {
"key", key)
rawData, err := pdb.database.Get(key)
if err != nil {
pdb.logger.Errorw("Error getting phrase",
pdb.logger.Debugw("Error getting phrase",
"error", err,
"key", key,
)
return phrase.Phrase{}, err
return phrase.Phrase{}, nil
}
if rawData == nil {
pdb.logger.Debugw("Phrase not found in db",
Expand Down

0 comments on commit 989b216

Please sign in to comment.