diff options
author | Jakob Borg <jakob@nym.se> | 2014-03-09 09:15:36 +0100 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-03-09 09:15:36 +0100 |
commit | 2553ba0463ceefbabe848e00d98b6872f4c9745b (patch) | |
tree | 8dd5754c884e419a5a4fc265d83bc0f50be397e2 /discover | |
parent | 52ee7d572429677164faae2fa56af60dc8cf7cc9 (diff) |
Discover & main tracing
Diffstat (limited to 'discover')
-rw-r--r-- | discover/debug.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/discover/debug.go b/discover/debug.go new file mode 100644 index 0000000000..18de7027ef --- /dev/null +++ b/discover/debug.go @@ -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") +) |