Change debug thread dump log level from error to info
Prevents silly people assuming its an error condition. They shouldn't be enabling the debug options in the first place, and they will probably still think its an error because of the scary stack trace they can't understand, but i think making it info log level will be more sensible at least. I've not made it debug log level but info instead intentionally, since that would cause it to be invisible for most people instead. An argument against this change would be that info instead of error would make it go to stdout instead of stderr or make it harder to see through other log lines; i can change it to warn log level if desired. Relevant: https://github.com/decce6/Ixeris/issues/100
This commit is contained in:
parent
502857229d
commit
ee8825f4a7
|
|
@ -78,8 +78,8 @@ public class ModernFixMixinPlugin implements IMixinConfigPlugin {
|
|||
while(true) {
|
||||
try {
|
||||
Thread.sleep(60000);
|
||||
logger.error("------ DEBUG THREAD DUMP (occurs every 60 seconds) ------");
|
||||
logger.error(ThreadDumper.obtainThreadDump());
|
||||
logger.info("------ DEBUG THREAD DUMP (occurs every 60 seconds) ------");
|
||||
logger.info(ThreadDumper.obtainThreadDump());
|
||||
} catch(InterruptedException | RuntimeException e) {}
|
||||
}
|
||||
}
|
||||
|
|
@ -300,4 +300,4 @@ public class ModernFixMixinPlugin implements IMixinConfigPlugin {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user