syncthing/xdr/debug.go
2014-05-17 13:55:10 +02:00

16 lines
232 B
Go

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