syncthing/protocol/debug.go

14 lines
216 B
Go
Raw Normal View History

2014-05-28 10:06:06 +00:00
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
)