diff --git a/WarehouseMgr/Tnb.WarehouseMgr/TimedTaskBackgroundService.cs b/WarehouseMgr/Tnb.WarehouseMgr/TimedTaskBackgroundService.cs index a15bbabf..6b7c22a3 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/TimedTaskBackgroundService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/TimedTaskBackgroundService.cs @@ -66,17 +66,17 @@ namespace Tnb.WarehouseMgr { if (ex is TimedTaskException timedTaskEx) { - await _eventPublisher.PublishAsync(new LogEventSource("Log:CreateExLog", options, new SysLogEntity - { - Id = SnowflakeIdHelper.NextId(), - Category = 4, - IPAddress = NetHelper.Ip, - RequestURL = httpRequest.Path, - RequestMethod = httpRequest.Method, - Json = timedTaskEx + "\n" + context.Exception.StackTrace + "\n" + context.Exception.TargetSite.GetParameters().ToString(), - PlatForm = string.Format("{0}-{1}", userAgent.OS.ToString(), userAgent.RawValue), - CreatorTime = DateTime.Now - })); + //await _eventPublisher.PublishAsync(new LogEventSource("Log:CreateExLog", options, new SysLogEntity + //{ + // Id = SnowflakeIdHelper.NextId(), + // Category = 4, + // IPAddress = NetHelper.Ip, + // RequestURL = httpRequest.Path, + // RequestMethod = httpRequest.Method, + // Json = timedTaskEx + "\n" + context.Exception.StackTrace + "\n" + context.Exception.TargetSite.GetParameters().ToString(), + // PlatForm = string.Format("{0}-{1}", userAgent.OS.ToString(), userAgent.RawValue), + // CreatorTime = DateTime.Now + //})); } }); await Task.Delay(1000);