Browse Source

Log goroutines count even without logging enabled

Ask Bjørn Hansen 13 years ago
parent
commit
3f189ca0b0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      monitor.go

+ 3 - 2
monitor.go

@@ -1,13 +1,14 @@
 package main
 
 import (
+	"log"
 	"runtime"
 	"time"
 )
 
 func monitor() {
 	for {
-		logPrintln("goroutines", runtime.NumGoroutine())
-		time.Sleep( 60 * time.Second)
+		log.Println("goroutines", runtime.NumGoroutine())
+		time.Sleep(60 * time.Second)
 	}
 }