diff options
author | Darragh O'Reilly <doreilly@suse.com> | 2019-11-08 08:52:06 +0000 |
---|---|---|
committer | Darragh O'Reilly <doreilly@suse.com> | 2019-11-13 11:44:29 +0000 |
commit | cf6f1b43017826585c3b6c0528506cc533696131 (patch) | |
tree | 8f7d21a8e75038f1ae66e27094a432331dcc9252 | |
parent | 9a5f153c4b3fc51f4bdf3d96965bdd25a2f45f92 (diff) | |
download | oslo-db-cf6f1b43017826585c3b6c0528506cc533696131.tar.gz |
Reduce severity of wrapped exceptions logs to warning
Change-Id: I6ea68fb17ceac23337bfb7405eb3f7a6df8b61f2
Closes-Bug: 1851797
-rw-r--r-- | oslo_db/sqlalchemy/exc_filters.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/oslo_db/sqlalchemy/exc_filters.py b/oslo_db/sqlalchemy/exc_filters.py index 637667b..767c71c 100644 --- a/oslo_db/sqlalchemy/exc_filters.py +++ b/oslo_db/sqlalchemy/exc_filters.py @@ -413,8 +413,7 @@ def _raise_for_remaining_DBAPIError(error, match, engine_name, is_disconnect): if is_disconnect: raise exception.DBConnectionError(error) else: - LOG.exception( - 'DBAPIError exception wrapped from %s' % error) + LOG.warn('DBAPIError exception wrapped.', exc_info=True) raise exception.DBError(error) @@ -425,7 +424,7 @@ def _raise_for_unicode_encode(error, match, engine_name, is_disconnect): @filters("*", Exception, r".*") def _raise_for_all_others(error, match, engine_name, is_disconnect): - LOG.exception('DB exception wrapped.') + LOG.warn('DB exception wrapped.', exc_info=True) raise exception.DBError(error) ROLLBACK_CAUSE_KEY = 'oslo.db.sp_rollback_cause' |