[tor-bugs] #32036 [Core Tor/Tor]: output debug logs to logcat as early as possible on Android

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Nov 5 06:01:24 UTC 2019


#32036: output debug logs to logcat as early as possible on Android
---------------------------------------------+-----------------------------
 Reporter:  eighthave                        |          Owner:  (none)
     Type:  enhancement                      |         Status:  new
 Priority:  Medium                           |      Milestone:  Tor:
                                             |  0.4.3.x-final
Component:  Core Tor/Tor                     |        Version:
 Severity:  Normal                           |     Resolution:
 Keywords:  tbb-mobile, Android, 043-should  |  Actual Points:
Parent ID:                                   |         Points:
 Reviewer:                                   |        Sponsor:
---------------------------------------------+-----------------------------
Changes (by teor):

 * keywords:  tbb-mobile, Android => tbb-mobile, Android, 043-should


Comment:

 I wonder if we should have a separate layer for control logs (which
 require the network) and other function-based logs, like syslog, which do
 not.

 But that's a big refactor, so maybe we should provide a way to change the
 default err log. At the moment, the default err log is a write() to
 stderr. When the err module is initialised, it can be replaced with
 stdout. When the log module is initialised, it can be replaced with a file
 or function.

 Is syslog() interrupt-safe on Android?

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


More information about the tor-bugs mailing list