Skip to content

Commit

Permalink
better logging for adlv2 network errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kahing committed Aug 20, 2019
1 parent 337fd4b commit 6c0d873
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/backend_adlv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ func decodeADLv2Error(body io.Reader) (adlErr adl2.DataLakeStorageError, err err
func mapADLv2Error(resp *http.Response, err error, rawError bool) error {
if resp == nil {
if err != nil {
if detailedError, ok := err.(autorest.DetailedError); ok {
adl2Log.Errorf("%T: %v", detailedError, detailedError)
} else {
adl2Log.Errorf("unknown error: %v", err)
}
return syscall.EAGAIN
} else {
return err
Expand Down

0 comments on commit 6c0d873

Please sign in to comment.