diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-10 23:30:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-10 23:34:43 -0400 |
commit | 93dfb1203715bd275d0eed6c8cccf6b6db76fd95 (patch) | |
tree | c6da409f3293b602cbc2c0c54feeba694402fa9a /src/common/torlog.h | |
parent | 6e2ef4bc5ef882b3434d2fe15c1007b4ac711374 (diff) | |
download | tor-93dfb1203715bd275d0eed6c8cccf6b6db76fd95.tar.gz tor-93dfb1203715bd275d0eed6c8cccf6b6db76fd95.zip |
Remember log messages that happen before logs are configured
(And replay them once we know our first real logs.)
This is an implementation for issue 6938. It solves the problem of
early log mesages not getting sent to log files, but not the issue of
early log messages not getting sent to controllers.
Diffstat (limited to 'src/common/torlog.h')
-rw-r--r-- | src/common/torlog.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/torlog.h b/src/common/torlog.h index 34e39b4b94..8105af4351 100644 --- a/src/common/torlog.h +++ b/src/common/torlog.h @@ -121,7 +121,7 @@ typedef struct log_severity_list_t { /** Callback type used for add_callback_log. */ typedef void (*log_callback)(int severity, uint32_t domain, const char *msg); -void init_logging(void); +void init_logging(int disable_startup_queue); int parse_log_level(const char *level); const char *log_level_to_string(int level); int parse_log_severity_config(const char **cfg, @@ -147,6 +147,7 @@ void mark_logs_temp(void); void change_callback_log_severity(int loglevelMin, int loglevelMax, log_callback cb); void flush_pending_log_callbacks(void); +void flush_log_messages_from_startup(void); void log_set_application_name(const char *name); void set_log_time_granularity(int granularity_msec); void truncate_logs(void); |