debug.go 232 B

123456789101112131415
  1. package xdr
  2. import (
  3. "os"
  4. "strings"
  5. "github.com/calmh/syncthing/logger"
  6. )
  7. var (
  8. debug = strings.Contains(os.Getenv("STTRACE"), "xdr") || os.Getenv("STTRACE") == "all"
  9. dl = logger.DefaultLogger
  10. )
  11. const maxDebugBytes = 32