diff options
author | Nagaraju Goruganti <ngorugan@in.ibm.com> | 2017-10-13 08:09:52 -0500 |
---|---|---|
committer | Nagaraju Goruganti <ngorugan@in.ibm.com> | 2017-10-24 10:02:36 -0500 |
commit | f8a5a7978355ead2d148c3e93607d1c24adf8a74 (patch) | |
tree | f9e0e7a5ce47f8d0192db1505ab846e379af0807 /elog_entry.hpp | |
parent | b0562c48b100bd6478d2d3ce5579d4f7bc7ea168 (diff) | |
download | phosphor-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 'elog_entry.hpp')
-rw-r--r-- | elog_entry.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/elog_entry.hpp b/elog_entry.hpp index 24d93cf..8dcc2a2 100644 --- a/elog_entry.hpp +++ b/elog_entry.hpp @@ -111,6 +111,13 @@ class Entry : public EntryIfaces */ void delete_() override; + /** @brief Severity level to check in cap. + * @details Errors with severity lesser than this will be + * considered as low priority and maximum ERROR_INFO_CAP + * number errors of this category will be captured. + */ + static constexpr auto sevLowerLimit = Entry::Level::Informational; + private: /** @brief This entry's associations */ AssociationList assocs = {}; |