|
@@ -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;
|