Browse Source

Fixed logger error with incorrect config load order

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
7cf114c3fa
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Loader/Logging/StandardLogger.cs

+ 2
- 2
IPA.Loader/Logging/StandardLogger.cs View File

@ -294,9 +294,9 @@ namespace IPA.Logging
} }
} }
var debugConfig = SelfConfig.SelfConfigRef.Value.Debug;
var debugConfig = SelfConfig.SelfConfigRef?.Value?.Debug;
if (debugConfig.HideMessagesForPerformance
if (debugConfig != null && debugConfig.HideMessagesForPerformance
&& logQueue.Count > debugConfig.HideLogThreshold) && logQueue.Count > debugConfig.HideLogThreshold)
{ // spam filtering (if queue has more tha 512 elements) { // spam filtering (if queue has more tha 512 elements)
logWaitEvent.Reset(); // pause incoming log requests logWaitEvent.Reset(); // pause incoming log requests


Loading…
Cancel
Save