Skip to content

Commit

Permalink
1164 adjust archive get fn error call (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-codecov authored May 15, 2024
1 parent 5ab507b commit 4d31035
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions database/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def _get_value_from_archive(self, obj):
)
return result
except FileNotInStorageError:
log.error(
"Archive enabled field not in storage",
log.warning(
"Archive enabled not found, retrying soon",
extra=dict(
storage_path=archive_field,
object_id=obj.id,
Expand All @@ -129,6 +129,14 @@ def _get_value_from_archive(self, obj):
# in a tight loop
time.sleep(self.read_timeout / 10)

log.error(
"Archive enabled field not in storage",
extra=dict(
storage_path=archive_field,
object_id=obj.id,
commit=obj.get_commitid(),
),
)
else:
log.debug(
"Both db_field and archive_field are None",
Expand Down

0 comments on commit 4d31035

Please sign in to comment.