Skip to content

Commit

Permalink
Don't log Imperator's standard error (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Jul 6, 2024
1 parent 98086b9 commit ec3c1ef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ImperatorToCK3/Imperator/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ private void LaunchImperatorToExportCountryFlags(Configuration config) {
private static EventHandler HandleImperatorProcessExit(Configuration config, Process imperatorProcess) {
return (_, _) => {
Logger.Debug($"Imperator process exited with code {imperatorProcess.ExitCode}. Removing temporary mod files...");
if (imperatorProcess.ExitCode != 0) {
Logger.Debug("Imperator standard error: " + imperatorProcess.StandardError.ReadToEnd());
}
try {
File.Delete(Path.Combine(config.ImperatorDocPath, "mod/coa_export_mod.mod"));
Directory.Delete(Path.Combine(config.ImperatorDocPath, "mod/coa_export_mod"), recursive: true);
Expand Down

0 comments on commit ec3c1ef

Please sign in to comment.