mirror of
https://github.com/Radarr/Radarr
synced 2025-12-06 08:28:50 +01:00
Remove the database credentials from the connectionString when logging.
This commit is contained in:
parent
b59ff0a3b1
commit
2e4bed86df
1 changed files with 2 additions and 1 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue