From 1aecb85cabd174bb30f6104bbdd31776aab96f06 Mon Sep 17 00:00:00 2001 From: Michael Insel Date: Mon, 25 May 2020 21:05:30 +0200 Subject: [PATCH] Adjust debug outout format --- modules/fritz/fritz_http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/fritz/fritz_http.go b/modules/fritz/fritz_http.go index bb667b7..b7b7a4f 100644 --- a/modules/fritz/fritz_http.go +++ b/modules/fritz/fritz_http.go @@ -39,7 +39,7 @@ func DoSoapRequest(soapRequest *SoapData, resps chan<- []byte, errs chan<- error // enable this for debug sessions if debug { - fmt.Println(string(body)) + fmt.Printf("---\nFrist SOAP Response:\n---\n%v\n---\n", string(body)) } // create immediately a new request with authentication @@ -96,7 +96,7 @@ func DoSoapRequest(soapRequest *SoapData, resps chan<- []byte, errs chan<- error // enable this for debug sessions if debug { - fmt.Println(string(body)) + fmt.Printf("---\nSecond SOAP Response:\n---\n%v\n---\n", string(body)) } resps <- body