[tor-bugs] #7325 [pyobfsproxy]: Scrub IPs before displaying them in logs

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Nov 21 03:38:38 UTC 2012


#7325: Scrub IPs before displaying them in logs
-------------------------+--------------------------------------------------
 Reporter:  sysrqb       |          Owner:  asn           
     Type:  defect       |         Status:  needs_revision
 Priority:  normal       |      Milestone:                
Component:  pyobfsproxy  |        Version:                
 Keywords:               |         Parent:                
   Points:               |   Actualpoints:                
-------------------------+--------------------------------------------------

Comment(by sysrqb):

 I'm trying to find a more elegant solution. As you suggest, we can use
 {{{
   logger = logging.getLogger(__name__)
 }}}
 per-module. However, this starts to separate the two logging classes
 (logging and ObfsLogger) which I was under the impression we wanted to
 combine. If we do initialize the logger in each module then we're still
 adding a little extra code overhead, which isn't ideal. There should be a
 way for us to accomplish what we want in log.py and then only need to
 import it into the other modules and call log.debug() et al.

 I'm hopeful, but the more I type the more I think we will need at least
 one or two global lines in each module to initialize it.

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


More information about the tor-bugs mailing list