debug.go 428 B

1234567891011121314151617
  1. // Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
  2. // All rights reserved. Use of this source code is governed by an MIT-style
  3. // license that can be found in the LICENSE file.
  4. package versioner
  5. import (
  6. "os"
  7. "strings"
  8. "github.com/syncthing/syncthing/logger"
  9. )
  10. var (
  11. debug = strings.Contains(os.Getenv("STTRACE"), "versioner") || os.Getenv("STTRACE") == "all"
  12. l = logger.DefaultLogger
  13. )