From c6e1106a444a96c2f0498986cc9f26c9e7fd3140 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Wed, 15 May 2019 21:36:09 -0500 Subject: [PATCH] Fixed logger error with incorrect config load order --- IPA.Loader/Logging/StandardLogger.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPA.Loader/Logging/StandardLogger.cs b/IPA.Loader/Logging/StandardLogger.cs index 460e132a..3465925b 100644 --- a/IPA.Loader/Logging/StandardLogger.cs +++ b/IPA.Loader/Logging/StandardLogger.cs @@ -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) { // spam filtering (if queue has more tha 512 elements) logWaitEvent.Reset(); // pause incoming log requests