debug.go 251 B

123456789101112131415
  1. // Copyright (C) 2014 The Protocol Authors.
  2. package protocol
  3. import (
  4. "os"
  5. "strings"
  6. "github.com/calmh/logger"
  7. )
  8. var (
  9. debug = strings.Contains(os.Getenv("STTRACE"), "protocol") || os.Getenv("STTRACE") == "all"
  10. l = logger.DefaultLogger
  11. )