Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 7, 2023
1 parent ae8f7ee commit ff74889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/asrockrack/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func (a *ASRockRack) queryHTTPS(ctx context.Context, endpoint, method string, pa
}

// debug dump request
if os.Getenv(bmclibconsts.EnvEnableDebug) == "true" {
if os.Getenv(constants.EnvEnableDebug) == "true" {
reqDump, _ := httputil.DumpRequestOut(req, true)
a.log.V(3).Info("trace", "url", URL, "requestDump", string(reqDump))
}
Expand All @@ -613,7 +613,7 @@ func (a *ASRockRack) queryHTTPS(ctx context.Context, endpoint, method string, pa
}

// debug dump response
if os.Getenv(bmclibconsts.EnvEnableDebug) == "true" {
if os.Getenv(constants.EnvEnableDebug) == "true" {
respDump, _ := httputil.DumpResponse(resp, true)
a.log.V(3).Info("trace", "responseDump", string(respDump))
}
Expand Down

0 comments on commit ff74889

Please sign in to comment.