Fix password masking error - password not in args anyway
This commit is contained in:
+2
-1
@@ -427,7 +427,8 @@ public sealed class PostgresDatabaseProvider : IJellyfinDatabaseProvider
|
||||
// Build psql command
|
||||
var psqlArgs = $"-h {builder.Host} -p {builder.Port} -U {builder.Username} -d {builder.Database} -f \"{schemaScriptPath}\"";
|
||||
|
||||
logger.LogInformation("Executing via psql: psql {Args}", psqlArgs.Replace(builder.Password ?? string.Empty, "***", StringComparison.Ordinal));
|
||||
// Log command (password not in args, so safe to log)
|
||||
logger.LogInformation("Executing via psql: psql {Args}", psqlArgs);
|
||||
|
||||
var psqlProcess = new System.Diagnostics.Process
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user