This commit is contained in:
Audrius Butkevicius
2015-06-28 01:52:01 +01:00
parent 8e191c8e6b
commit b72d31f87f
13 changed files with 1114 additions and 319 deletions

15
client/debug.go Normal file
View File

@@ -0,0 +1,15 @@
// Copyright (C) 2015 Audrius Butkevicius and Contributors (see the CONTRIBUTORS file).
package client
import (
"os"
"strings"
"github.com/calmh/logger"
)
var (
debug = strings.Contains(os.Getenv("STTRACE"), "relay") || os.Getenv("STTRACE") == "all"
l = logger.DefaultLogger
)