shmmonitor: add severity setting

This commit is contained in:
Alexey Rybalchenko
2021-04-14 11:31:56 +02:00
parent 2c89b24857
commit b67b80e0ad
3 changed files with 7 additions and 3 deletions

View File

@@ -497,7 +497,7 @@ std::pair<std::string, bool> RunRemoval(std::function<bool(const std::string&)>
return {name, true};
} else {
if (verbose) {
LOG(info) << "Did not remove '" << name << "'. Already removed?";
LOG(debug) << "Did not remove '" << name << "'. Already removed?";
}
return {name, false};
}
@@ -525,7 +525,7 @@ std::vector<std::pair<std::string, bool>> Monitor::Cleanup(const ShmId& shmId, b
RegionCounter* rc = managementSegment.find<RegionCounter>(bipc::unique_instance).first;
if (rc) {
if (verbose) {
LOG(info) << "Region counter found: " << rc->fCount;
LOG(debug) << "Region counter found: " << rc->fCount;
}
uint16_t regionCount = rc->fCount;