[tor-bugs] #7599 [Tor]: convert log() to tor_log()

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Dec 1 03:36:46 UTC 2012


#7599: convert log() to tor_log()
-------------------------+--------------------------------------------------
 Reporter:  dhill        |          Owner:                    
     Type:  enhancement  |         Status:  needs_revision    
 Priority:  normal       |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor          |        Version:  Tor: 0.2.4.4-alpha
 Keywords:               |         Parent:                    
   Points:               |   Actualpoints:                    
-------------------------+--------------------------------------------------
Changes (by nickm):

  * milestone:  => Tor: 0.2.4.x-final


Comment:

 Worth doing. IMO the right time to merge this is in mid/late Dec, when I
 shouldn't have so many huge patches outstanding that will create conflicts
 here.  The approach I'll plan to take will be:
   1) Using the above technique, find all log() instances that should be
 tor_mathlog(). change them in a commit.
   2) Write a trivial script to convert
 log(LOG_{DEBUG,INFO,NOTICE,WARN,ERR} into
 log_{debug,info,notice,warn,err}(.  The script should then convert
 remaining log( into tor_log(.  Have a commit that is nothing but the
 output of the script.
   3) Make a third commit for whitespace fixes.

 Shouldn't take more than an hour. probably much less.

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


More information about the tor-bugs mailing list