Skip to content

Commit

Permalink
Use log.exception instead of log.error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Jan 18, 2024
1 parent ab17892 commit 182cb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def commit(session: Union[scoped_session, Session, "SessionlessContext"]):
finally:
if err:
session.rollback()
log.error("Database transaction rolled back due to the following error: %s", err)
log.exception("Database transaction rolled back due to the following error: %s", err)


@contextlib.contextmanager
Expand Down

0 comments on commit 182cb4c

Please sign in to comment.