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

Maybe we'll able to remove this in the far future.
This commit is contained in:
David Fifield 2018-12-18 21:24:32 -07:00
parent a48b704788
commit a554439370

View file

@ -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)
}