[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #32888 [Core Tor/Tor]: Log address config info when tor starts up
#32888: Log address config info when tor starts up
--------------------------------+----------------------------------
Reporter: teor | Owner: (none)
Type: enhancement | Status: new
Priority: Medium | Milestone: Tor: unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: ipv6, 043-deferred | Actual Points:
Parent ID: #5940 | Points: 1
Reviewer: | Sponsor:
--------------------------------+----------------------------------
Comment (by c):
I created a work-in-progress PR here:
https://github.com/torproject/tor/pull/1910
So far I've addressed most of IPv4 logging requirements except logging
"the local network interface addresses". I assume this logic is handled at
`get_interface_address6` which fetches a list of addresses returned by
`getifaddrs(3)` and returns one address that can then be used by the
caller. The issue here is, adding a `log_debug()` line inside of this
function only seems to run through the loop when the code is built with
`-O0` optimisation, meaning this loop may get skipped entirely during
runtime at higher optimisation levels.
My question is, for debugging purposes are we only worried about `-O0`
level, or is there a better place to put this debug logging, or something
else entirely?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32888#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs