From be3f248a5a37f259e8c271fbf344fc3e374ea6af Mon Sep 17 00:00:00 2001 From: Kukks Date: Wed, 14 Oct 2020 09:06:50 +0200 Subject: [PATCH] Do not log the database connection string fixes #1980 --- BTCPayServer/Hosting/BTCPayServerServices.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Hosting/BTCPayServerServices.cs b/BTCPayServer/Hosting/BTCPayServerServices.cs index 0dbb31fe0..e6efea426 100644 --- a/BTCPayServer/Hosting/BTCPayServerServices.cs +++ b/BTCPayServer/Hosting/BTCPayServerServices.cs @@ -112,12 +112,12 @@ namespace BTCPayServer.Hosting ApplicationDbContextFactory dbContext = null; if (!String.IsNullOrEmpty(opts.PostgresConnectionString)) { - Logs.Configuration.LogInformation($"Postgres DB used ({opts.PostgresConnectionString})"); + Logs.Configuration.LogInformation($"Postgres DB used"); dbContext = new ApplicationDbContextFactory(DatabaseType.Postgres, opts.PostgresConnectionString); } else if (!String.IsNullOrEmpty(opts.MySQLConnectionString)) { - Logs.Configuration.LogInformation($"MySQL DB used ({opts.MySQLConnectionString})"); + Logs.Configuration.LogInformation($"MySQL DB used"); Logs.Configuration.LogWarning("MySQL is not widely tested and should be considered experimental, we advise you to use postgres instead."); dbContext = new ApplicationDbContextFactory(DatabaseType.MySQL, opts.MySQLConnectionString); }