From 9b908dcdcd9aa9f99d1da159559b265eb036aff4 Mon Sep 17 00:00:00 2001 From: Klemet Date: Thu, 22 Feb 2024 10:58:39 -0500 Subject: [PATCH] Removing debug messages when execution --- src/PlugIn.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PlugIn.cs b/src/PlugIn.cs index 546ad4c..3638213 100644 --- a/src/PlugIn.cs +++ b/src/PlugIn.cs @@ -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 listOfExtensions = (List)modelCore.GetType().GetField("disturbAndOtherExtensions", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(modelCore); - modelCore.UI.WriteLine(listOfExtensions.ToString()); + // modelCore.UI.WriteLine(listOfExtensions.ToString()); List listOfHarvestExtension = new List(); 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]; @@ -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");