syncthing/protocol/debug.go
2014-05-28 14:27:08 +02:00

14 lines
216 B
Go

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
)