Skip to content

Commit

Permalink
providers/arockrack: use debug variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 7, 2023
1 parent 13604f0 commit ae8f7ee
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("BMCLIB_LOG_LEVEL") == "trace" {
if os.Getenv(bmclibconsts.EnvEnableDebug) == "true" {

Check failure on line 605 in providers/asrockrack/helpers.go

View workflow job for this annotation

GitHub Actions / test

undefined: bmclibconsts

Check failure on line 605 in providers/asrockrack/helpers.go

View workflow job for this annotation

GitHub Actions / lint

undefined: bmclibconsts (typecheck)

Check failure on line 605 in providers/asrockrack/helpers.go

View workflow job for this annotation

GitHub Actions / test

undefined: bmclibconsts

Check failure on line 605 in providers/asrockrack/helpers.go

View workflow job for this annotation

GitHub Actions / lint

undefined: bmclibconsts (typecheck)
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("BMCLIB_LOG_LEVEL") == "trace" {
if os.Getenv(bmclibconsts.EnvEnableDebug) == "true" {

Check failure on line 616 in providers/asrockrack/helpers.go

View workflow job for this annotation

GitHub Actions / test

undefined: bmclibconsts

Check failure on line 616 in providers/asrockrack/helpers.go

View workflow job for this annotation

GitHub Actions / lint

undefined: bmclibconsts (typecheck)

Check failure on line 616 in providers/asrockrack/helpers.go

View workflow job for this annotation

GitHub Actions / test

undefined: bmclibconsts

Check failure on line 616 in providers/asrockrack/helpers.go

View workflow job for this annotation

GitHub Actions / lint

undefined: bmclibconsts (typecheck)
respDump, _ := httputil.DumpResponse(resp, true)
a.log.V(3).Info("trace", "responseDump", string(respDump))
}
Expand Down

0 comments on commit ae8f7ee

Please sign in to comment.