diff --git a/XP.Scan/Services/ReconstructionNotifyService.cs b/XP.Scan/Services/ReconstructionNotifyService.cs index 87b4720..acc88ab 100644 --- a/XP.Scan/Services/ReconstructionNotifyService.cs +++ b/XP.Scan/Services/ReconstructionNotifyService.cs @@ -61,11 +61,11 @@ namespace XP.Scan.Services } catch (SocketException ex) { - _logger.Error($"重建通知发送失败(Socket) | Reconstruction notify failed: {ex.Message}"); + _logger.Error(ex, "重建通知发送失败(Socket) | Reconstruction notify failed: {0}", ex.Message); } catch (Exception ex) { - _logger.Error($"重建通知发送异常 | Reconstruction notify error: {ex.Message}"); + _logger.Error(ex, "重建通知发送异常 | Reconstruction notify error: {0}", ex.Message); } } }