feat: better logging for snapshot failure
This commit is contained in:
parent
e1362cea4b
commit
27ce5fc4a8
1 changed files with 1 additions and 1 deletions
|
|
@ -24,6 +24,6 @@ def generate_snapshot(id_: int) -> None:
|
|||
snapshot.snapshot_published_at = datetime.now()
|
||||
db.commit()
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
logging.exception("Failed to generate snapshot %s", id_)
|
||||
snapshot.snapshot_state = SnapshotState.FAILED
|
||||
db.commit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue