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