Pārlūkot izejas kodu

More verbose debug logging of UPnP SOAP requests

Caleb Callaway 11 gadi atpakaļ
vecāks
revīzija
9d79859ba6
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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)
 	}