From d17dcb316341bb8e2485a4ac57171e343280d5f6 Mon Sep 17 00:00:00 2001 From: Vyacheslav Starostin Date: Wed, 2 Oct 2024 15:32:49 +0500 Subject: [PATCH] Add logs --- cmd/writePipelineEnv.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/writePipelineEnv.go b/cmd/writePipelineEnv.go index cbc6842c06..441d3b0f4c 100644 --- a/cmd/writePipelineEnv.go +++ b/cmd/writePipelineEnv.go @@ -57,6 +57,7 @@ func WritePipelineEnv() *cobra.Command { func runWritePipelineEnv(stepConfigPassword string, encryptedCPE bool) error { var err error pipelineEnv, ok := os.LookupEnv("PIPER_pipelineEnv") + log.Entry().Debugf("PIPER_pipelineEnv exists: %t, value: %s", ok, pipelineEnv) inBytes := []byte(pipelineEnv) if !ok { var err error @@ -66,6 +67,7 @@ func runWritePipelineEnv(stepConfigPassword string, encryptedCPE bool) error { } } if len(inBytes) == 0 { + log.Entry().Debug("No pipeline env") return nil }