Преглед изворни кода

Skip task scheduler logging

Jonas Björkert пре 1 година
родитељ
комит
b74cd285e0
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      LoopFollow/Log/LogManager.swift

+ 4 - 0
LoopFollow/Log/LogManager.swift

@@ -63,6 +63,10 @@ class LogManager {
         consoleQueue.async {
             print(logMessage)
         }
+        
+        if category == .taskScheduler && isDebug {
+            return
+        }
 
         if let key = limitIdentifier, !Storage.shared.debugLogLevel.value {
             let shouldLog: Bool = rateLimitQueue.sync {