syncthing/protocol/debug.go

14 lines
216 B
Go
Raw Normal View History

2014-05-28 03:06:06 -07: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
)