summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-14 12:27:29 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-14 12:27:29 +0200
commit355e9bd619c8ec8bdd0f2934739a87a15ceb6920 (patch)
tree36dfb2a5d34e63873281f1d6ed23ca6eaf34a425 /main.go
parent8b30278ce666a74b46f607b47bf3fbe87744c016 (diff)
Clean more
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 6c7b07d..c9ef343 100644
--- a/main.go
+++ b/main.go
@@ -186,7 +186,7 @@ func main() {
env = append(env, fmt.Sprintf("%s=4", ENV_WG_UAPI_FD))
env = append(env, fmt.Sprintf("%s=1", ENV_WG_PROCESS_FOREGROUND))
files := [3]*os.File{}
- if os.Getenv("LOG_LEVEL") != "" {
+ if os.Getenv("LOG_LEVEL") != "" && logLevel != LogLevelSilent {
files[1] = os.Stdout
files[2] = os.Stderr
}