If debug not enabled, throw away log output

This commit is contained in:
Justin Hawkins 2022-07-31 17:57:38 +09:30
parent 42f91949f5
commit ccf92c86a0

View File

@ -82,6 +82,9 @@ func main() {
os.Exit(1)
}
defer f.Close()
} else {
w, _ := os.Open(os.DevNull)
log.SetOutput(w)
}
m := model{}