syncthing/upnp/debug.go

13 lines
186 B
Go
Raw Normal View History

2014-04-18 04:20:42 -07:00
package upnp
import (
"log"
"os"
"strings"
)
var (
dlog = log.New(os.Stderr, "upnp: ", log.Lmicroseconds|log.Lshortfile)
debug = strings.Contains(os.Getenv("STTRACE"), "upnp")
)