diff options
Diffstat (limited to 'occ_errors.cpp')
-rw-r--r-- | occ_errors.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/occ_errors.cpp b/occ_errors.cpp index bc01c91..fc24310 100644 --- a/occ_errors.cpp +++ b/occ_errors.cpp @@ -93,7 +93,6 @@ void Error::removeWatch() int Error::processEvents(sd_event_source* es, int fd, uint32_t revents, void* userData) { - log<level::INFO>("Error file updated"); auto error = static_cast<Error*>(userData); error->analyzeEvent(); @@ -118,6 +117,8 @@ 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) { |