diff --git a/dcs_core/integrations/databases/sybase.py b/dcs_core/integrations/databases/sybase.py index bf8e51e4..1868a5c6 100644 --- a/dcs_core/integrations/databases/sybase.py +++ b/dcs_core/integrations/databases/sybase.py @@ -70,11 +70,9 @@ def connect(self) -> Any: conn_dict["host"] = host or server try: - logger.debug(f"Attempting FreeTDS connection with config: {conn_dict}") + logger.debug("Attempting FreeTDS connection") self.connection = pyodbc.connect(**conn_dict) - logger.info( - f"Successfully connected to Sybase using FreeTDS: {conn_dict}" - ) + logger.info("Successfully connected to Sybase using FreeTDS") return self.connection except Exception as e: error_msg = f"Failed to connect to Sybase with FreeTDS: {str(e)}" @@ -149,24 +147,15 @@ def connect(self) -> Any: final_config.update(ase_config) try: - logger.debug( - f"Attempting connection with config: {final_config}" - ) + logger.debug("Attempting connection ...") self.connection = pyodbc.connect(**final_config) logger.info( - f"Successfully connected to Sybase using: " - f"driver={driver}, " - f"{attempt['key']}={attempt['value']}, " - f"port_config={port_config}, " - f"ase_config={ase_config}" + "Successfully connected to Sybase using: " + f"driver={driver}" ) return self.connection except Exception as e: - error_msg = ( - f"Failed with {attempt['key']}={attempt['value']}, " - f"port_config={port_config}, " - f"ase_config={ase_config}: {str(e)}" - ) + error_msg = "Failed to connect to sybase." logger.debug(error_msg) errors.append(error_msg) continue