Remove the database credentials from the connectionString when logging.

This commit is contained in:
Jean-Kevin KPADEY 2025-11-30 18:59:39 +01:00
parent b59ff0a3b1
commit 2e4bed86df
No known key found for this signature in database
GPG key ID: 6A272CFD476229DF

View file

@ -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";