Discover & main tracing

This commit is contained in:
Jakob Borg
2014-03-09 09:15:36 +01:00
parent 52ee7d5724
commit 2553ba0463
5 changed files with 73 additions and 57 deletions

12
discover/debug.go Normal file
View File

@@ -0,0 +1,12 @@
package discover
import (
"log"
"os"
"strings"
)
var (
dlog = log.New(os.Stderr, "discover: ", log.Lmicroseconds|log.Lshortfile)
debug = strings.Contains(os.Getenv("STTRACE"), "discover")
)