瀏覽代碼

More verbose debug logging of UPnP SOAP requests

Caleb Callaway 11 年之前
父節點
當前提交
9d79859ba6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      internal/upnp/upnp.go

+ 2 - 1
internal/upnp/upnp.go

@@ -448,7 +448,8 @@ func soapRequest(url, device, function, message string) ([]byte, error) {
 	req.Header.Set("Pragma", "no-cache")
 
 	if debug {
-		l.Debugln(req.Header.Get("SOAPAction"))
+		l.Debugln("SOAP Request URL: " + url)
+		l.Debugln("SOAP Action: " + req.Header.Get("SOAPAction"))
 		l.Debugln("SOAP Request:\n\n" + body)
 	}