summaryrefslogtreecommitdiffstats
path: root/occ_errors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'occ_errors.cpp')
-rw-r--r--occ_errors.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/occ_errors.cpp b/occ_errors.cpp
index fc24310..ee41db9 100644
--- a/occ_errors.cpp
+++ b/occ_errors.cpp
@@ -117,18 +117,10 @@ void Error::analyzeEvent()
// A non-zero data indicates an error condition
// Let the caller take appropriate action on this
auto data = readFile(len);
- log<level::INFO>("Error file updated",
- entry("ERROR=%s", data.c_str()));
- if (data.empty() ||
- data.front() == NO_ERROR)
- {
- return;
- }
-
- // This must be an error
+ bool error = !(data.empty() || data.front() == NO_ERROR);
if (callBack)
{
- callBack();
+ callBack(error);
}
return;
}
OpenPOWER on IntegriCloud