Browse Source

webgo: switch off date/time formatting

This should make log discarding even faster as no date/time information
is generated.
Ingo Oeser 12 years ago
parent
commit
d483576046
1 changed files with 1 additions and 1 deletions
  1. 1 1
      webgo/src/hello/hello.go

+ 1 - 1
webgo/src/hello/hello.go

@@ -19,7 +19,7 @@ func hello(val string) string {
 }
 }
 
 
 func main() {
 func main() {
-	logger := log.New(ioutil.Discard, "", log.Ldate|log.Ltime)
+	logger := log.New(ioutil.Discard, "", 0)
 	runtime.GOMAXPROCS(runtime.NumCPU())
 	runtime.GOMAXPROCS(runtime.NumCPU())
 	web.Get("/(.*)", hello)
 	web.Get("/(.*)", hello)
 	web.SetLogger(logger)
 	web.SetLogger(logger)