bugzilla-daemon at main.slony.info bugzilla-daemon at main.slony.info
Thu Jul 11 15:06:19 PDT 2013
http://www.slony.info/bugzilla/show_bug.cgi?id=300

--- Comment #2 from Christopher Browne <cbbrowne at ca.afilias.info> 2013-07-11 15:06:20 PDT ---
An initial swing at this...

https://github.com/cbbrowne/slony1-engine/tree/bug300

Things added:

a) A new table, sl_eventlog

b) A function that adds to it, logEvent()

c) Injected logEvent() into existing function component_state(), so that the
existing monitoring of state pushes that data into sl_eventlog

d) Injected some calls into logswitch_finish() so that log switches get
captured

e) Add a cleanup function, trimOldLoggedEvents()

For each actor/eventtype, it trims out all entries older than the last N, where
N is currently set to 10.

f) Add a call to that function to cleanupEvents(), so that the log gets
trimmed.

-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Slony1-bugs mailing list