Skip to content
Prev Previous commit
Next Next commit
Comment out SelfLog for now as requested
  • Loading branch information
Falco20019 committed Feb 27, 2025
commit 455a10f76f73babf33fd9c097b7e5386b900cbae
2 changes: 2 additions & 0 deletions src/Serilog.Sinks.File/Sinks/File/RollingFileSink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ public void Emit(LogEvent logEvent)
AlignCurrentFileTo(now, nextSequence: true);
}

/* TODO: We REALLY should add this to avoid stuff become missing undetected.
if (_currentFile == null)
{
SelfLog.WriteLine("Log event {0} was lost since it was not possible to open the file or create a new one.", logEvent.RenderMessage());
}
*/
}
}

Expand Down