diff --git a/source/RobotAPI/components/units/RobotUnit/util/ControlThreadOutputBuffer.cpp b/source/RobotAPI/components/units/RobotUnit/util/ControlThreadOutputBuffer.cpp index 1327e8e353890c42fb2200c253e42ff03325be35..f230d88c16da317777eebc3667d5d1bbff3f9f15 100644 --- a/source/RobotAPI/components/units/RobotUnit/util/ControlThreadOutputBuffer.cpp +++ b/source/RobotAPI/components/units/RobotUnit/util/ControlThreadOutputBuffer.cpp @@ -78,7 +78,7 @@ namespace armarx ARMARX_CHECK_EXPRESSION(isInitialized); if (writePosition - onePastLoggingReadPosition >= numEntries) { - ARMARX_ERROR << "There are " << writePosition - onePastLoggingReadPosition + ARMARX_VERBOSE << "There are " << writePosition - onePastLoggingReadPosition << " unlogged entries, but only the last " << numEntries << " are saved! " "There seems to be something wrong (e.g. the rt logging threw an exception, " "the system load is too high or the logging takes to long). " @@ -89,7 +89,7 @@ namespace armarx auto numNewEntries = writePosition - onePastLoggingReadPosition; if (numNewEntries >= numEntries) { - ARMARX_ERROR << " more new entries (" << numNewEntries << ") than space (" << numEntries << ") -> Skipping everything else"; + ARMARX_VERBOSE << " more new entries (" << numNewEntries << ") than space (" << numEntries << ") -> Skipping everything else"; return; } //consume all @@ -109,7 +109,7 @@ namespace armarx auto newNumNewEntries = writePosition - onePastLoggingReadPosition; if (newNumNewEntries * 2 > numEntries) { - ARMARX_WARNING << deactivateSpam(0.5) + ARMARX_VERBOSE << deactivateSpam(5) << "RT-Logging is slow! " << "The RT-Thread writes faster new data than the RT-Logging thread consumes it! " << " old/new/max number of entries: " @@ -118,7 +118,7 @@ namespace armarx numNewEntries = newNumNewEntries; if (numNewEntries >= numEntries) { - ARMARX_ERROR << " more new entries (" << numNewEntries << ") than space (" << numEntries << ") -> Skipping everything else"; + ARMARX_VERBOSE << " more new entries (" << numNewEntries << ") than space (" << numEntries << ") -> Skipping everything else"; return; } } @@ -132,7 +132,7 @@ namespace armarx ARMARX_CHECK_EXPRESSION(isInitialized); if (writePosition - onePastLoggingReadPosition >= numEntries) { - ARMARX_ERROR << "There are " << writePosition - onePastLoggingReadPosition + ARMARX_VERBOSE << "There are " << writePosition - onePastLoggingReadPosition << " unlogged entries, but only the last " << numEntries << " are saved! " "There seems to be something wrong (e.g. the rt logging threw an exception, " "the system load is too high or the logging takes to long). "