Browse Source

Added some notes to StatnardLogger

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
55afe527c6
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

@ -269,7 +269,7 @@ namespace IPA.Logging
var started = new HashSet<LogPrinter>();
while (logQueue.TryTake(out var msg, Timeout.Infinite))
{
StdoutInterceptor.Intercept();
StdoutInterceptor.Intercept(); // only runs once, after the first message is queued
do
{
var logger = msg.Logger;
@ -309,7 +309,7 @@ namespace IPA.Logging
if (debugConfig != null && debugConfig.HideMessagesForPerformance
&& logQueue.Count > debugConfig.HideLogThreshold)
{ // spam filtering (if queue has more tha 512 elements)
{ // spam filtering (if queue has more than HideLogThreshold elements)
logWaitEvent.Reset(); // pause incoming log requests
// clear loggers for this instance, to print the message to all affected logs


Loading…
Cancel
Save