summaryrefslogtreecommitdiffstats
path: root/log_manager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'log_manager.hpp')
-rw-r--r--log_manager.hpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/log_manager.hpp b/log_manager.hpp
index 730f63e..f366684 100644
--- a/log_manager.hpp
+++ b/log_manager.hpp
@@ -46,7 +46,8 @@ class Manager : public details::ServerObject<details::ManagerIface>
Manager(sdbusplus::bus::bus& bus, const char* objPath) :
details::ServerObject<details::ManagerIface>(bus, objPath),
busLog(bus),
- entryId(0) {};
+ entryId(0),
+ capped(false) {};
/*
* @fn commit()
@@ -91,6 +92,16 @@ class Manager : public details::ServerObject<details::ManagerIface>
/** @brief Id of last error log entry */
uint32_t entryId;
+
+ /**
+ * @brief Flag to log error for the first time when error cap is
+ * reached.
+ * @details Flag used to log error message for the first time when the
+ * error cap value is reached. It is reset when user delete's error
+ * entries and total entries existing is less than the error cap
+ * value.
+ */
+ bool capped;
};
} // namespace logging
OpenPOWER on IntegriCloud