Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0091af6ae |
|
|
@ -48,7 +48,7 @@ namespace CodeRelease.BLL
|
||||||
{
|
{
|
||||||
//Console.WriteLine($"Output: {e.Data}");
|
//Console.WriteLine($"Output: {e.Data}");
|
||||||
|
|
||||||
outputDataReceived += e.Data;
|
outputDataReceived += e.Data + "\n";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -59,7 +59,7 @@ namespace CodeRelease.BLL
|
||||||
if (!string.IsNullOrEmpty(e.Data))
|
if (!string.IsNullOrEmpty(e.Data))
|
||||||
{
|
{
|
||||||
//Console.WriteLine($"Error: {e.Data}");
|
//Console.WriteLine($"Error: {e.Data}");
|
||||||
errorDataReceived += e.Data;
|
errorDataReceived += e.Data + "\n";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -76,8 +76,8 @@ namespace CodeRelease.BLL
|
||||||
// 输出退出代码
|
// 输出退出代码
|
||||||
//Console.WriteLine($"Process exited with code {process.ExitCode}");
|
//Console.WriteLine($"Process exited with code {process.ExitCode}");
|
||||||
Log.Logger.Information($"执行结束:{process.ExitCode}");
|
Log.Logger.Information($"执行结束:{process.ExitCode}");
|
||||||
Log.Logger.Information($"执行日志:{outputDataReceived}");
|
Log.Logger.Information($"{outputDataReceived}");
|
||||||
Log.Logger.Information($"错误日志:{errorDataReceived}");
|
Log.Logger.Information($"{errorDataReceived}");
|
||||||
exitCode = process.ExitCode;
|
exitCode = process.ExitCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user