rxr: warnings shouldnt throw exception

This commit is contained in:
2019-11-29 11:09:41 +01:00
parent 1d6be74ee5
commit 2ece6b945e
7 changed files with 21 additions and 19 deletions

View File

@@ -159,10 +159,13 @@ void DataProcessor::SetThreadPriority(int priority) {
struct sched_param param;
param.sched_priority = priority;
if (pthread_setschedparam(thread, SCHED_FIFO, &param) == EPERM) {
throw sls::RuntimeError("Could not prioritize dataprocessing threads. "
"(No Root Privileges?)");
if (!index) {
FILE_LOG(logWARNING) << "Could not prioritize dataprocessing thread. "
"(No Root Privileges?)";
}
} else {
FILE_LOG(logINFO) << "Priorities set - DataProcessor: " << priority;
}
FILE_LOG(logINFO) << "Processor Thread Priority set to " << priority;
}