mchehab/rasdaemon

Clearing errors / excluding old events from reports

m-sundman opened this issue · 0 comments

Once there is an error event in the database it will apparently be reported every single time. It would be very useful to clear events so that they either are removed from the database or stay there but are excluded from reports like ras-mc-ctl --errors and ras-mc-ctl --summary.

A possible solution would be to include a column, "is_new", in the event database, that can be set to false to indicate that the event in question is old and should not be reported anymore (i.e., the queries used by the reports would add a ... WHERE is_new clause). Another possibility would be to have a global variable, "last_seen_id" which indicates that only events with id > last_seen_id should be reported.