mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add --hush switch.
New --hush command-line option similar to --quiet. While --quiet disables all logging to the console on startup, --hush limits the output to messages of warning and error severity. svn:r14222
This commit is contained in:
+2
-2
@@ -535,10 +535,10 @@ init_logging(void)
|
||||
* logs are initialized).
|
||||
*/
|
||||
void
|
||||
add_temp_log(void)
|
||||
add_temp_log(int min_severity)
|
||||
{
|
||||
log_severity_list_t *s = tor_malloc_zero(sizeof(log_severity_list_t));
|
||||
set_log_severity_config(LOG_NOTICE, LOG_ERR, s);
|
||||
set_log_severity_config(min_severity, LOG_ERR, s);
|
||||
LOCK_LOGS();
|
||||
add_stream_log_impl(s, "<temp>", stdout);
|
||||
tor_free(s);
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@ int add_callback_log(log_severity_list_t *severity, log_callback cb);
|
||||
int get_min_log_level(void);
|
||||
void switch_logs_debug(void);
|
||||
void logs_free_all(void);
|
||||
void add_temp_log(void);
|
||||
void add_temp_log(int min_severity);
|
||||
void close_temp_logs(void);
|
||||
void rollback_log_changes(void);
|
||||
void mark_logs_temp(void);
|
||||
|
||||
Reference in New Issue
Block a user