Minor fixes

This commit is contained in:
Wojtek Figat
2024-01-28 01:15:29 +01:00
parent a0e127b9cc
commit c60058758b
2 changed files with 5 additions and 9 deletions

View File

@@ -1876,11 +1876,7 @@ void OnLogCallback(const char* logDomain, const char* logLevel, const char* mess
}
#endif
if (errorLevel == 0)
{
Log::CLRInnerException(String::Format(TEXT("Message: {0} | Domain: {1}"), msg, currentDomain)).SetLevel(LogType::Error);
}
else if (errorLevel <= 2)
if (errorLevel <= 2)
{
Log::CLRInnerException(String::Format(TEXT("Message: {0} | Domain: {1}"), msg, currentDomain)).SetLevel(LogType::Error);
}