diff options
| author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-11-18 12:44:18 +1100 |
|---|---|---|
| committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-11-18 12:44:18 +1100 |
| commit | bc2675119df5c2fe0943bcfea0178a1926be6fc7 (patch) | |
| tree | 968753be6eade458bf87405e5b1aead192eea312 /ctdb/lib/util/debug.h | |
| parent | 24c593d21f24c79f1a7b24aa1d1642b41e3f4efa (diff) | |
add an in memory ringbuffer where we store the last 500000 log entries regardless of log level.
add commandt to extract this in memory buffer and to clear it
(This used to be ctdb commit 29d2ee8d9c6c6f36b2334480f646d6db209f370e)
Diffstat (limited to 'ctdb/lib/util/debug.h')
| -rw-r--r-- | ctdb/lib/util/debug.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/lib/util/debug.h b/ctdb/lib/util/debug.h index a7d89785bb..d91f43b4b4 100644 --- a/ctdb/lib/util/debug.h +++ b/ctdb/lib/util/debug.h @@ -19,5 +19,6 @@ void (*do_debug_v)(const char *, va_list ap); void (*do_debug_add_v)(const char *, va_list ap); +void log_ringbuffer(const char *format, ...); void do_debug(const char *format, ...) PRINTF_ATTRIBUTE(1, 2); void dump_data(int level, const uint8_t *buf1, size_t len); |
