[tor-bugs] #33531 [Core Tor/Tor]: surprise newline in info-level cbt log

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Mar 4 18:10:32 UTC 2020


#33531: surprise newline in info-level cbt log
------------------------------+--------------------
     Reporter:  arma          |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------
 In circuit_expire_building() there is an info-level log that logs a \n
 character:

 {{{
          log_info(LD_CIRC,
 -                 "Deciding to count the timeout for circuit %"PRIu32"\n",
 +                 "Deciding to count the timeout for circuit %"PRIu32,
                   TO_ORIGIN_CIRCUIT(victim)->global_identifier);
 }}}

 the result is that I get strange blank lines in my log. I see them most
 obviously when I am doing
 {{{
 grep -v "\[info\]" /path/to/log-file|less
 }}}

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


More information about the tor-bugs mailing list