From f9881831dcc91365ce4c9945f6991359fd43550d Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 10 Jan 2022 11:31:00 +0200 Subject: [PATCH] . --- .../Services/Windows/CmdService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/NetworkResurrector.Agent.Application/Services/Windows/CmdService.cs b/src/agent/NetworkResurrector.Agent.Application/Services/Windows/CmdService.cs index a5b3e3e..ab55980 100644 --- a/src/agent/NetworkResurrector.Agent.Application/Services/Windows/CmdService.cs +++ b/src/agent/NetworkResurrector.Agent.Application/Services/Windows/CmdService.cs @@ -51,8 +51,8 @@ namespace NetworkResurrector.Agent.Application.Services.Windows process.BeginErrorReadLine(); process.WaitForExit(); - msg.Append($"Output:\n {commandOutput.ToString()}\n"); - msg.Append($"Errors:\n {commandError.ToString()}\n"); + msg.Append($"Output:\n {commandOutput}\n"); + msg.Append($"Errors:\n {commandError}\n"); msg.Append($"Process ended at: {DateTime.Now}"); return (commandError.Length > 0, msg.ToString());