github.com/kayoticsully/syncthing@v0.8.9-0.20140724133906-c45a2fdc03f8/upnp/debug.go (about)

     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  
     5  package upnp
     6  
     7  import (
     8  	"os"
     9  	"strings"
    10  
    11  	"github.com/calmh/syncthing/logger"
    12  )
    13  
    14  var (
    15  	debug = strings.Contains(os.Getenv("STTRACE"), "upnp") || os.Getenv("STTRACE") == "all"
    16  	l     = logger.DefaultLogger
    17  )