diff --git a/src/DIRAC/Core/Base/SQLAlchemyDB.py b/src/DIRAC/Core/Base/SQLAlchemyDB.py index 8b5360c33ae..fa93ef75f88 100644 --- a/src/DIRAC/Core/Base/SQLAlchemyDB.py +++ b/src/DIRAC/Core/Base/SQLAlchemyDB.py @@ -41,7 +41,9 @@ def _initializeConnection(self, dbPath): raise Exception(f"Cannot get database parameters: {result['Message']}") dbParameters = result["Value"] - self.log.debug(f"db parameters: {dbParameters}") + db_param_redacted = dbParameters.copy() + db_param_redacted["Password"] = "**REDACTED**" + self.log.debug(f"db parameters: {db_param_redacted}") self.host = dbParameters["Host"] self.port = dbParameters["Port"] self.user = dbParameters["User"]