add throws and enhance performance
This commit is contained in:
parent
64ab1d8fad
commit
53fdea4d18
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue