Files
syncthing-arm/lib/relay/client/debug.go
T

19 lines
359 B
Go
Raw Normal View History

2015-06-28 21:18:38 +01:00
// Copyright (C) 2015 Audrius Butkevicius and Contributors (see the CONTRIBUTORS file).
package client
import (
"os"
"strings"
"github.com/syncthing/syncthing/lib/logger"
2015-06-28 21:18:38 +01:00
)
var (
l = logger.DefaultLogger.NewFacility("relay", "")
2015-06-28 21:18:38 +01:00
)
func init() {
l.SetDebug("relay", strings.Contains(os.Getenv("STTRACE"), "relay") || os.Getenv("STTRACE") == "all")
}