Issue:
When configuring Tor as a bridge and to advertise a DirPort, the resulting warning is displayed on the console, but is not logged to the Tor log file.
Environment:
Debian squeeze amd64, latest patches
Tor version 0.2.4.2-alpha (git-0537dc6364594474)
How to reproduce:
Set "BridgeRelay 1"
Set "DirPort 80"
Start Tor.
The following warning will be displayed on the console:
"Starting tor daemon... [warn] Can't set a DirPort on a bridge relay; disabling DirPort
done."
No corresponding warning is logged to the Tor log file.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
This happens because Tor puts out that warning while parsing its config, and part of parsing the config is learning what logs the user wants to use. So, there aren't any log files open at that point.
Should we queue "logged stuff" until the log is open, then spit it all out there? That sounds like it could be confusing in the other direction.
Trac: Component: - Select a component to Tor Client Description: Issue:
When configuring Tor as a bridge and to advertise an ORPort, the resulting warning is displayed on the console, but is not logged to the Tor log file.
Environment:
Debian squeeze amd64, latest patches
Tor version 0.2.4.2-alpha (git-0537dc6364594474)
How to reproduce:
Set "BridgeRelay 1"
Set "DirPort 80"
Start Tor.
The following warning will be displayed on the console:
"Starting tor daemon... [warn] Can't set a DirPort on a bridge relay; disabling DirPort
done."
No corresponding warning is logged to the Tor log file.
to
Issue:
When configuring Tor as a bridge and to advertise a DirPort, the resulting warning is displayed on the console, but is not logged to the Tor log file.
Environment:
Debian squeeze amd64, latest patches
Tor version 0.2.4.2-alpha (git-0537dc6364594474)
How to reproduce:
Set "BridgeRelay 1"
Set "DirPort 80"
Start Tor.
The following warning will be displayed on the console:
"Starting tor daemon... [warn] Can't set a DirPort on a bridge relay; disabling DirPort
done."
No corresponding warning is logged to the Tor log file.
This is going to 0.2.7; it's not that hard to fix but not trivial - we need a buffering mechanism to save log messages generated early before log files are set up.
The Tor launcher folks want this feature too -- it turns out that the trick we use for running an external binary from a Firefox extension means you can't get at stdout.
If somebody does a patch, we could take it as early as 0.2.6.
The way to do it is like this: on startup, have the log mechanism store every logged message in a structure holding the time, the severity, the log domain, and ...
oh heck, I'll just do it.
(90 minutes later)
See branch "ticket6938" in my public repository. It'll help with logfiles and syslogs, but controllers that want to see early log messages via controller events are still out of luck.
Trac: Keywords: tor-client 026-triaged-1 deleted, tor-client 026-triaged-1 nickm-patch added Milestone: Tor: 0.2.7.x-final to Tor: 0.2.6.x-final Status: new to needs_review