Skip to content

Commit

Permalink
Removing debug messages when execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Klemet committed Feb 22, 2024
1 parent 2bd3639 commit 9b908dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PlugIn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ public override void Run()
// 1. DETECTING THE HARVEST EXTENSION

modelCore.UI.WriteLine("Magic Harvest is now running");
modelCore.UI.WriteLine("Magic Harvest : Printing extensions detected");
// modelCore.UI.WriteLine("Magic Harvest : Printing extensions detected");
List<ExtensionMain> listOfExtensions = (List<ExtensionMain>)modelCore.GetType().GetField("disturbAndOtherExtensions", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(modelCore);
modelCore.UI.WriteLine(listOfExtensions.ToString());
// modelCore.UI.WriteLine(listOfExtensions.ToString());
List<ExtensionMain> listOfHarvestExtension = new List<ExtensionMain>();
foreach (ExtensionMain extension in listOfExtensions)
{
modelCore.UI.WriteLine(extension.Name);
// modelCore.UI.WriteLine(extension.Name);
if (extension.Name.Contains("Base Harvest") || extension.Name.Contains("Biomass Harvest")) { listOfHarvestExtension.Add(extension); }
}
ExtensionMain harvestExtension = listOfHarvestExtension[0];
Expand All @@ -112,7 +112,7 @@ public override void Run()
if (processArgumentsReplaced.Contains("{none}")) { processArgumentsReplaced = ""; }
// We launch the command and wait for it to finish
modelCore.UI.WriteLine("Magic Harvest : Launching process " + parameters.ProcessToLaunch + " with arguments " + processArgumentsReplaced);
modelCore.UI.WriteLine("Magic Harvest : USING NON-CMD COMMAND");
// modelCore.UI.WriteLine("Magic Harvest : USING NON-CMD COMMAND");
Process cmd = System.Diagnostics.Process.Start(parameters.ProcessToLaunch, processArgumentsReplaced);
cmd.WaitForExit();
modelCore.UI.WriteLine("Magic Harvest : Command has finished running");
Expand Down

0 comments on commit 9b908dc

Please sign in to comment.