diff options
Diffstat (limited to 'sql/pg_handler.py')
| -rw-r--r-- | sql/pg_handler.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/pg_handler.py b/sql/pg_handler.py index 74a9170..b528a26 100644 --- a/sql/pg_handler.py +++ b/sql/pg_handler.py @@ -11,7 +11,7 @@ class PostgresHandler: "port": port } self._connection = psycopg2.connect(**db_params) - print("Handler Success") + self.print_to_debug("Connected to database successfully") def get_connection(self): return self._connection @@ -163,6 +163,9 @@ class PostgresHandler: print(f"Failed to get most recently added row from {table_name}") print(e) return False + + def print_to_debug(self, message: str): + print("[PostgresHandler] " + message) def close_connection(self): |
