Module: check_mk
Branch: master
Commit: e4d658d569ca327c808c4378bf8749434d7bbf23
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e4d658d569ca32…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Mar 8 11:44:02 2017 +0100
Improved error messages.
Change-Id: I2664ffe261d50545e11741e8ff84504b0c4707c4
---
livestatus/src/LogCache.cc | 2 +-
livestatus/src/LogwatchListColumn.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/LogCache.cc b/livestatus/src/LogCache.cc
index f583513..2d7d7ef 100644
--- a/livestatus/src/LogCache.cc
+++ b/livestatus/src/LogCache.cc
@@ -101,7 +101,7 @@ void LogCache::updateLogfileIndex() {
scanLogfile(entry.path(), false);
}
} catch (const fs::filesystem_error &e) {
- Warning(_logger) << "error while iterating directory: " <<
e.what();
+ Warning(_logger) << "updating log file index: " <<
e.what();
}
}
diff --git a/livestatus/src/LogwatchListColumn.cc b/livestatus/src/LogwatchListColumn.cc
index bed3bba..7055f30 100644
--- a/livestatus/src/LogwatchListColumn.cc
+++ b/livestatus/src/LogwatchListColumn.cc
@@ -64,6 +64,6 @@ void LogwatchListColumn::output(void *row, RowRenderer &r,
}
}
} catch (const fs::filesystem_error &e) {
- Warning(logger()) << "error while iterating directory: " <<
e.what();
+ Warning(logger()) << name() << ": " << e.what();
}
}