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

@ -108,10 +108,13 @@ void DataStreamer::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 datastreaming threads. "
"(No Root Privileges?)");
if (!index) {
FILE_LOG(logWARNING) << "Could not prioritize datastreaming thread. "
"(No Root Privileges?)";
}
} else {
FILE_LOG(logINFO) << "Priorities set - DataStreamer: " << priority;
}
FILE_LOG(logINFO) << "Streamer Thread Priority set to " << priority;
}
void DataStreamer::SetNumberofDetectors(int* nd) {