mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
bugfix: if no loglevel or logfile is specified, then we need to open
a default log to stdout. svn:r1909
This commit is contained in:
parent
faf2fdb1e0
commit
034110e761
@ -774,6 +774,10 @@ void config_init_logs(or_options_t *options)
|
||||
*/
|
||||
struct config_line_t *opt = options->LogOptions;
|
||||
|
||||
/* Special case if nothing is specified. */
|
||||
if(!opt)
|
||||
add_single_log(NULL, NULL, options->RunAsDaemon);
|
||||
|
||||
/* Special case for if first option is LogLevel. */
|
||||
if (opt && !strcasecmp(opt->key, "LogLevel")) {
|
||||
if (opt->next && !strcasecmp(opt->next->key, "LogFile")) {
|
||||
|
Loading…
Reference in New Issue
Block a user