From ce4f565e2fbe3f9da5279a727b37df075582adfe Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 28 May 2014 12:06:06 +0200 Subject: [PATCH] Add forgotten file --- protocol/debug.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 protocol/debug.go diff --git a/protocol/debug.go b/protocol/debug.go new file mode 100644 index 00000000..f1ebaf40 --- /dev/null +++ b/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 +)