From ae8f7eee2dca6f735298b30ad24bcc9ff24c2d38 Mon Sep 17 00:00:00 2001 From: Olivier FAURAX Date: Tue, 7 Nov 2023 16:41:57 +0100 Subject: [PATCH] providers/arockrack: use debug variable --- providers/asrockrack/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/asrockrack/helpers.go b/providers/asrockrack/helpers.go index 6cf677a6..64ac91b2 100644 --- a/providers/asrockrack/helpers.go +++ b/providers/asrockrack/helpers.go @@ -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" { reqDump, _ := httputil.DumpRequestOut(req, true) a.log.V(3).Info("trace", "url", URL, "requestDump", string(reqDump)) } @@ -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" { respDump, _ := httputil.DumpResponse(resp, true) a.log.V(3).Info("trace", "responseDump", string(respDump)) }