syncthing/lib/protocol/debug.go

16 lines
251 B
Go
Raw Normal View History

2015-01-13 12:31:14 +00:00
// Copyright (C) 2014 The Protocol Authors.
2014-09-22 19:42:11 +00:00
package protocol
import (
"os"
"strings"
"github.com/calmh/logger"
2014-09-22 19:42:11 +00:00
)
var (
debug = strings.Contains(os.Getenv("STTRACE"), "protocol") || os.Getenv("STTRACE") == "all"
l = logger.DefaultLogger
)