debug.go 394 B

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