Skip to content

Commit

Permalink
Removed unnecessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhas committed Sep 2, 2018
1 parent 552f0d3 commit 0d3462e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugin.cs
Expand Up @@ -117,7 +117,6 @@ internal void Invoke()
}

Collection<PSObject> outputCollection = pipe.Invoke();
rmAPI.LogF(API.LogType.Debug, "Done. State: {0}", pipe.PipelineStateInfo.State);

PSObject lastObject = null;
foreach (PSObject outputItem in outputCollection)
Expand Down Expand Up @@ -365,7 +364,6 @@ public static IntPtr Invoke(IntPtr data, int argc, [MarshalAs(UnmanagedType.LPAr
Measure measure = (Measure)GCHandle.FromIntPtr(data).Target;
if (argc > 0)
{
measure.rmAPI.Log(API.LogType.Error, argv[0]);
using (Pipeline pipe = measure.runspace.CreatePipeline())
{
for (int i = 0; i < argc; i++)
Expand All @@ -377,10 +375,8 @@ public static IntPtr Invoke(IntPtr data, int argc, [MarshalAs(UnmanagedType.LPAr
command = command.Remove(command.Length - 1, 1).Remove(0, 1);
}
pipe.Commands.AddScript(command);
measure.rmAPI.Log(API.LogType.Error, argv[i]);
}


try
{
var outputCollection = pipe.Invoke();
Expand Down

0 comments on commit 0d3462e

Please sign in to comment.