Commit a5544393 authored by David Fifield's avatar David Fifield
Browse files

Link to #26360 for why we blackhole logs without -log.

Maybe we'll able to remove this in the far future.
parent a48b7047
......@@ -93,6 +93,11 @@ func main() {
defer logFile.Close()
log.SetOutput(logFile)
} else {
// Don't write to stderr; versions of tor earlier than about
// 0.3.5.6 do not read from the pipe, and eventually we will
// deadlock because the buffer is full.
// https://bugs.torproject.org/26360
// https://bugs.torproject.org/25600#comment:14
log.SetOutput(ioutil.Discard)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment