From 37ea55e7e3e98299e4f2a975f0cf1d0e441ba137 Mon Sep 17 00:00:00 2001 From: yupwei68 Date: Tue, 15 Jun 2021 14:41:10 +0800 Subject: [PATCH] update --- sender/sender.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sender/sender.go b/sender/sender.go index b330159..d1017ad 100644 --- a/sender/sender.go +++ b/sender/sender.go @@ -48,6 +48,8 @@ func withRequestLogging(providerName string) autorest.SendDecorator { // fallback to basic message log.Printf("[DEBUG] %s Response: %s for %s\n", providerName, resp.Status, r.URL) } + } else if err != nil { + log.Printf("[DEBUG] %s Response Error: %s for %s\n", providerName, err, r.URL) } else { log.Printf("[DEBUG] Request to %s completed with no response", r.URL) }