[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #2362 [Tor Relay]: get-text always reports Log entry
#2362: get-text always reports Log entry
-----------------------+----------------------------------------------------
Reporter: atagar | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: Tor Relay | Version:
Keywords: | Parent:
-----------------------+----------------------------------------------------
Repro steps:
- use a blank torrc (just setting the ControlPort)
- run tor
- issue a GETINFO get-text
result: it provides a 'Log notice stdout' entry
expected: we should only get back entries that differ from their defaults
(in this case only the ControlPort)
from irc:
15:03 < armadev> atagar: it is a tor bug, i believe. i just reproduced.
15:03 < atagar> ok, I'll file a ticket - thanks :)
15:04 < armadev> if (smartlist_len(elts) == 0)
15:04 < armadev> smartlist_add(elts, tor_strdup("stdout"));
15:04 < armadev> in options_init_logs()
15:04 < armadev> that's where it comes from. we add it if there are no
other logs.
15:04 < armadev> hmmmm. no, i take that back.
15:05 < armadev> /* Special case on first boot if no Log options are
given. */
15:05 < armadev> if (!options->Logs && !options->RunAsDaemon &&
!from_setconf)
15:05 < armadev> config_line_append(&options->Logs, "Log", "notice
stdout");
15:05 < armadev> there we go.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2362>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs