mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
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:
parent
a48b704788
commit
a554439370
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,11 @@ func main() {
|
||||||
defer logFile.Close()
|
defer logFile.Close()
|
||||||
log.SetOutput(logFile)
|
log.SetOutput(logFile)
|
||||||
} else {
|
} 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)
|
log.SetOutput(ioutil.Discard)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue