From 2e4bed86df0afb053c661c7c5d83b1f57652434d Mon Sep 17 00:00:00 2001 From: Jean-Kevin KPADEY Date: Sun, 30 Nov 2025 18:59:39 +0100 Subject: [PATCH] Remove the database credentials from the connectionString when logging. --- .../Datastore/Migration/Framework/MigrationController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs index dfdbf5217c..be5eb36d54 100644 --- a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs +++ b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs @@ -8,6 +8,7 @@ using Microsoft.Extensions.DependencyInjection; using NLog; using NLog.Extensions.Logging; +using NzbDrone.Common.Instrumentation; namespace NzbDrone.Core.Datastore.Migration.Framework { @@ -29,7 +30,7 @@ public void Migrate(string connectionString, MigrationContext migrationContext, { var sw = Stopwatch.StartNew(); - _logger.Info("*** Migrating {0} ***", connectionString); + _logger.Info("*** Migrating {0} ***", CleanseLogMessage.Cleanse(connectionString)); var db = databaseType == DatabaseType.SQLite ? "sqlite" : "postgres";