From fc4cee3cf319012bd8f34a955837cbcd7816f696 Mon Sep 17 00:00:00 2001 From: Phil Owen <19691521+PhillipsOwen@users.noreply.github.com> Date: Fri, 12 Jan 2024 08:35:53 -0500 Subject: [PATCH] correcting logging method (error() -> exception() --- src/common/pg_utils_multi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/pg_utils_multi.py b/src/common/pg_utils_multi.py index d103290..dde1235 100644 --- a/src/common/pg_utils_multi.py +++ b/src/common/pg_utils_multi.py @@ -175,7 +175,7 @@ def get_db_connection(self, db_info: namedtuple) -> bool: break except Exception: - self.logger.error('Error getting connection %s.', db_info.name) + self.logger.exception('Error getting connection %s.', db_info.name) good_conn = False # are we still looking for a connection