syncthing/xdr/debug.go

16 lines
232 B
Go
Raw Normal View History

2014-05-17 06:49:30 +00:00
package xdr
import (
"os"
"strings"
"github.com/calmh/syncthing/logger"
)
var (
debug = strings.Contains(os.Getenv("STTRACE"), "xdr") || os.Getenv("STTRACE") == "all"
dl = logger.DefaultLogger
)
const maxDebugBytes = 32