mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Small logger system optimization
Only perform colorization operation for script errors when log level is at least that of the console.
This commit is contained in:
parent
dee5b36088
commit
8611a0c607
@ -296,7 +296,10 @@ void CoreMsgV(LogType_t logType, LogLevel_t logLevel, eDLL_T context,
|
||||
va_end(argsCopy);
|
||||
|
||||
#ifndef NETCONSOLE
|
||||
if (bSquirrel)
|
||||
//-------------------------------------------------------------------------
|
||||
// Colorize script warnings and errors
|
||||
//-------------------------------------------------------------------------
|
||||
if (bToConsole && bSquirrel)
|
||||
{
|
||||
if (bWarning && g_bSQAuxError)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user