Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Add support for limiting the size of the event log DB #15

Merged
merged 1 commit into from
Mar 21, 2016

Conversation

causten
Copy link
Member

@causten causten commented Mar 17, 2016

embedded systems only have so much space. This feature enables the event deamon to
limit the number of bytes used for logs via an input parameter

Limit the DB to 1k...
/usr/sbin/phosphor-eventd -s 1000

Without the parameter the db size is unlimited.

When the db hits the limit, the event is NOT logged to the db. It is however
added (without debug data) to the syslog still AND an error message is posted
in the syslog...

 event logger reached maximum capacity, event not logged

Interfaces exist already to clear the entire db and individual events.


This change is Reviewable

embedded systems only have so much space.  This feature enables the event deamon to
limit the number of bytes used for logs via an input parameter

Limit the DB to 1k...
    /usr/sbin/phosphor-eventd -s 1000

Without the parameter the db size is unlimited.

When the db hits the limit, the event is NOT logged to the db.  It is however
added (without debug data) to the syslog still AND an error message is posted
in the syslog...

     event logger reached maximum capacity, event not logged

Interfaces exist already to clear the entire db and individual events.
nkskjames added a commit that referenced this pull request Mar 21, 2016
Add support for limiting the size of the event log DB
@nkskjames nkskjames merged commit b7ea1b9 into openbmc:master Mar 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants