提交代码

This commit is contained in:
zpc 2024-07-09 16:36:53 +08:00
parent 1f94f028c6
commit 4095c3c4a8

View File

@ -42,8 +42,8 @@ namespace CodeRelease.BLL
// 绑定输出和错误数据接收事件
process.OutputDataReceived += new DataReceivedEventHandler((sender, e) =>
{
Log.Logger.Information($"linux执行出错OutputDataReceived命令{command},sender:{JsonConvert.SerializeObject(sender)}Output:{JsonConvert.SerializeObject(e)}"
);
Log.Logger.Information($"linux执行出错OutputDataReceived命令{command}");
Log.Logger.Information($"linux执行出错OutputDataReceivedOutput{JsonConvert.SerializeObject(e)}" );
if (!string.IsNullOrEmpty(e.Data))
{
Console.WriteLine($"Output: {e.Data}");
@ -53,7 +53,8 @@ namespace CodeRelease.BLL
process.ErrorDataReceived += new DataReceivedEventHandler((sender, e) =>
{
Log.Logger.Information($"linux执行出错OutputDataReceived命令{command},sender:{JsonConvert.SerializeObject(sender)}Output:{JsonConvert.SerializeObject(e)}");
Log.Logger.Information($"linux执行出错ErrorDataReceived命令{command}");
Log.Logger.Information($"linux执行出错ErrorDataReceivedOutput:{JsonConvert.SerializeObject(e)}");
if (!string.IsNullOrEmpty(e.Data))
{
Console.WriteLine($"Error: {e.Data}");