We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9094a2 commit 01b4957Copy full SHA for 01b4957
2 files changed
PSql.Deploy/Migrations/CmdletMigrationConsole.cs
@@ -49,7 +49,7 @@ public TextWriter CreateLog(M.IMigrationApplication info)
49
var database = info.Target.DatabaseDisplayName;
50
var fileName = $"{server}.{database}.{(int) phase}_{phase}.log".SanitizeFileName();
51
52
- return new StreamWriter(Path.Combine(logPath, fileName));
+ return new StreamWriter(Path.Combine(logPath, fileName)) { AutoFlush = true };
53
}
54
55
/// <inheritdoc/>
PSql.Deploy/Seeds/CmdletSeedConsole.cs
@@ -50,7 +50,7 @@ public TextWriter CreateLog(S.ISeedApplication info)
var fileName = $"{target}.{seed}.log".SanitizeFileName();
return TextWriter.Synchronized(
- new StreamWriter(Path.Combine(_logPath, fileName))
+ new StreamWriter(Path.Combine(_logPath, fileName)) { AutoFlush = true }
);
56
0 commit comments