[tor-bugs] #3550 [Tor Client]: --quiet flag doesn't prevent default log to stdout in options_validate()

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Aug 4 18:24:16 UTC 2011


#3550: --quiet flag doesn't prevent default log to stdout in options_validate()
------------------------+---------------------------------------------------
 Reporter:  atagar      |          Owner:                    
     Type:  defect      |         Status:  needs_review      
 Priority:  minor       |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------
Changes (by nickm):

  * status:  new => needs_review


Comment:

 The plot thickens: --quiet ''does'' seem to work with stuff like --list-
 fingerprint and --hash-password.

 A little poking shows that the log is added in options_init_logs(), when
 it adds the log handler for the entry added in options_validate.  It
 doesn't look at the "quiet" value at all when it does this.

 Easiest way to solve this AFAICT is to make the quiet level a global and
 have it change the behavior of options_validate().

 Have a look at branch bug3550 in my public repository?

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3550#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list