Skip to content

Commit f523c50

Browse files
committed
fix(connection, logging): cast redshift_types as a str to resolve exceptions seen when using redshift-connector with logbook
1 parent 8623b9b commit f523c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redshift_connector/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ def _enable_protocol_based_conversion_funcs(self: "Connection"):
849849
if self.numeric_to_float:
850850
_logger.debug("Enabling numeric to float text conversion function")
851851
self.redshift_types[RedshiftOID.NUMERIC] = (FC_TEXT, numeric_to_float_in)
852-
_logger.debug("connection.redshift_types=%s", self.redshift_types)
852+
_logger.debug("connection.redshift_types=%s", str(self.redshift_types))
853853

854854
@property
855855
def _is_multi_databases_catalog_enable_in_server(self: "Connection") -> bool:

0 commit comments

Comments
 (0)