😎优化异常日志邮件发送机制
This commit is contained in:
parent
e408d89043
commit
e24efb3970
@ -123,7 +123,7 @@ public class DatabaseLoggingWriter : IDatabaseLoggingWriter, IDisposable
|
|||||||
// 将异常日志发送到邮件
|
// 将异常日志发送到邮件
|
||||||
if (await _sysConfigService.GetConfigValue<bool>(CommonConst.SysErrorMail))
|
if (await _sysConfigService.GetConfigValue<bool>(CommonConst.SysErrorMail))
|
||||||
{
|
{
|
||||||
await App.GetRequiredService<IEventPublisher>().PublishAsync(CommonConst.SendErrorMail, loggingMonitor.exception);
|
await App.GetRequiredService<IEventPublisher>().PublishAsync(CommonConst.SendErrorMail, logMsg.Exception ?? loggingMonitor.exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user