mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 06:25:01 -04:00
Log manager SDK protocol
This commit is contained in:
@@ -720,6 +720,17 @@ bool ResourceManager::AttemptLocalConnection()
|
||||
}
|
||||
std::this_thread::sleep_for(5ms);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| If local client, set local log level to server's |
|
||||
| log level and download log entries |
|
||||
\*-------------------------------------------------*/
|
||||
if(auto_connection_client->GetLocal() && auto_connection_client->GetSupportsLogManagerAPI())
|
||||
{
|
||||
unsigned int log_level = auto_connection_client->LogManager_GetLogLevel();
|
||||
LogManager::get()->SetLogLevel(log_level, true);
|
||||
auto_connection_client->LogManager_GetLogBuffer();
|
||||
}
|
||||
}
|
||||
|
||||
return success;
|
||||
|
||||
Reference in New Issue
Block a user