Skip to content

Commit

Permalink
Fixed logger error with incorrect config load order
Browse files Browse the repository at this point in the history
  • Loading branch information
nike4613 committed May 16, 2019
1 parent f7f7d2e commit c6e1106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPA.Loader/Logging/StandardLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ private static void LogThread()
}
}

var debugConfig = SelfConfig.SelfConfigRef.Value.Debug;
var debugConfig = SelfConfig.SelfConfigRef?.Value?.Debug;

if (debugConfig.HideMessagesForPerformance
if (debugConfig != null && debugConfig.HideMessagesForPerformance
&& logQueue.Count > debugConfig.HideLogThreshold)
{ // spam filtering (if queue has more tha 512 elements)
logWaitEvent.Reset(); // pause incoming log requests
Expand Down

0 comments on commit c6e1106

Please sign in to comment.