debug.go 210 B

12345678910111213
  1. package model
  2. import (
  3. "os"
  4. "strings"
  5. "github.com/calmh/syncthing/logger"
  6. )
  7. var (
  8. debug = strings.Contains(os.Getenv("STTRACE"), "model") || os.Getenv("STTRACE") == "all"
  9. l = logger.DefaultLogger
  10. )