summaryrefslogtreecommitdiffstats
path: root/log_manager.hpp
diff options
context:
space:
mode:
authorNagaraju Goruganti <ngorugan@in.ibm.com>2017-10-13 08:09:52 -0500
committerNagaraju Goruganti <ngorugan@in.ibm.com>2017-10-24 10:02:36 -0500
commitf8a5a7978355ead2d148c3e93607d1c24adf8a74 (patch)
treef9e0e7a5ce47f8d0192db1505ab846e379af0807 /log_manager.hpp
parentb0562c48b100bd6478d2d3ce5579d4f7bc7ea168 (diff)
downloadphosphor-logging-f8a5a7978355ead2d148c3e93607d1c24adf8a74.tar.gz
phosphor-logging-f8a5a7978355ead2d148c3e93607d1c24adf8a74.zip
Handle more than 100 error logs
Added new Cap for info(and below) severity errors, if cap size reaches, next commited error of severity:info(and below) will replace the first entry of severity:info(and below). Resolves openbmc/openbmc#2381 Change-Id: I2e56c28a934bf3139e57b36d252bd5ad3e1dd90f Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
Diffstat (limited to 'log_manager.hpp')
-rw-r--r--log_manager.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/log_manager.hpp b/log_manager.hpp
index af176f9..399a243 100644
--- a/log_manager.hpp
+++ b/log_manager.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <list>
#include <sdbusplus/bus.hpp>
#include <phosphor-logging/log.hpp>
#include "elog_entry.hpp"
@@ -111,6 +112,9 @@ class Manager : public details::ServerObject<details::ManagerIface>
/** @brief Persistent map of Entry dbus objects and their ID */
std::map<uint32_t, std::unique_ptr<Entry>> entries;
+ /** @brief List of error ids for Info(and below) severity */
+ std::list<uint32_t> infoErrors;
+
/** @brief Id of last error log entry */
uint32_t entryId;
OpenPOWER on IntegriCloud