Skip to content

Commit

Permalink
Merge pull request #81 from yupwei68/wyp-logging
Browse files Browse the repository at this point in the history
Update logging for possible artificial response error
  • Loading branch information
tombuildsstuff authored Jun 24, 2021
2 parents badedbb + 37ea55e commit 166ee52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sender/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 166ee52

Please sign in to comment.