提交代码
This commit is contained in:
parent
1f94f028c6
commit
4095c3c4a8
|
|
@ -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执行出错OutputDataReceived,Output{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执行出错ErrorDataReceived,Output:{JsonConvert.SerializeObject(e)}");
|
||||
if (!string.IsNullOrEmpty(e.Data))
|
||||
{
|
||||
Console.WriteLine($"Error: {e.Data}");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user