Fix some logging mistake

This commit is contained in:
Alex 2021-07-05 23:23:30 +02:00 committed by Adam Honse
parent ef36664ef2
commit 4c41a8834d
2 changed files with 11 additions and 8 deletions

View file

@ -232,14 +232,17 @@ void LogManager::_append(const char* filename, int line, unsigned int level, con
/*-------------------------------------------------*\
| If the message level is LL_WARNING or lower, add |
| it to the error queue |
| |
| Commented out - It is causing OpenRGB to crash |
| according to #1537 |
\*-------------------------------------------------*/
if(level <= LL_WARNING)
{
for(size_t idx = 0; idx < error_callbacks.size(); ++idx)
{
error_callbacks[idx].first(error_callbacks[idx].second, mes);
}
}
//if(level <= LL_WARNING)
//{
// for(size_t idx = 0; idx < error_callbacks.size(); ++idx)
// {
// error_callbacks[idx].first(error_callbacks[idx].second, mes);
// }
//}
}
void LogManager::append(const char* filename, int line, unsigned int level, const char* fmt, ...)