mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Close the log file in server.
This commit is contained in:
parent
9ebde38b3f
commit
db2251345d
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("can't open log file: %s", err)
|
log.Fatalf("can't open log file: %s", err)
|
||||||
}
|
}
|
||||||
|
defer f.Close()
|
||||||
log.SetOutput(f)
|
log.SetOutput(f)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue