commit prior to changing Search::processkeywords to use it's own db context as a test to get to the bottom of the weird concurrency issues
This commit is contained in:
@@ -101,6 +101,10 @@ namespace AyaNova
|
||||
var logRuleFilterOutMicrosoftEfCoreConcurrencyExceptions = new LoggingRule("Microsoft.EntityFrameworkCore.Update", NLog.LogLevel.Trace, NLog.LogLevel.Error, nullTarget);
|
||||
logRuleFilterOutMicrosoftEfCoreConcurrencyExceptions.Final = true;
|
||||
|
||||
var logRuleFilterOutMicrosoftEfCoreCommandExceptions = new LoggingRule("Microsoft.EntityFrameworkCore.Database.Command", NLog.LogLevel.Trace, NLog.LogLevel.Error, nullTarget);
|
||||
logRuleFilterOutMicrosoftEfCoreCommandExceptions.Final = true;
|
||||
|
||||
|
||||
//Log all other regular items at selected level
|
||||
var logRuleAyaNovaItems = new LoggingRule("*", NLogLevel, fileTarget);
|
||||
|
||||
@@ -116,6 +120,7 @@ namespace AyaNova
|
||||
//filter OUT microsoft stuff
|
||||
logConfig.LoggingRules.Add(logRuleFilterOutMicrosoft);
|
||||
logConfig.LoggingRules.Add(logRuleFilterOutMicrosoftEfCoreConcurrencyExceptions);
|
||||
logConfig.LoggingRules.Add(logRuleFilterOutMicrosoftEfCoreCommandExceptions);
|
||||
}
|
||||
|
||||
logConfig.LoggingRules.Add(logRuleAyaNovaItems);
|
||||
|
||||
Reference in New Issue
Block a user