add throws and enhance performance

This commit is contained in:
Qrakhen 2025-11-18 17:06:45 +01:00
parent 64ab1d8fad
commit 53fdea4d18
2 changed files with 5 additions and 0 deletions

View File

@ -285,11 +285,13 @@ public class Digester : ISteppable<Token>
internal void Export()
{
_logger.Method();
throw new NotImplementedException($"Import is not yet implemented. Sorry, it's difficult.");
}
internal void Import()
{
_logger.Method();
throw new NotImplementedException($"Import is not yet implemented. Sorry, it's difficult.");
}
internal void If()

View File

@ -148,6 +148,9 @@ public class Logger : ILogger, ILogFormatter
public void Method(object? value = null, [CallerMemberName] string? caller = null)
{
if (Level < LogLevel.Trace)
return; // save some ticks here
if (caller == null)
{
var st = new StackTrace();