Browse Source

Add forgotten file

Jakob Borg 11 years ago
parent
commit
ce4f565e2f
1 changed files with 13 additions and 0 deletions
  1. 13 0
      protocol/debug.go

+ 13 - 0
protocol/debug.go

@@ -0,0 +1,13 @@
+package protocol
+
+import (
+	"os"
+	"strings"
+
+	"github.com/calmh/syncthing/logger"
+)
+
+var (
+	debug = strings.Contains(os.Getenv("STTRACE"), "protocol") || os.Getenv("STTRACE") == "all"
+	l     = logger.DefaultLogger
+)