Skip to content

Commit 0d03bcf

Browse files
committed
fix(deploy): hide traces from --log-debug output by default
Traces can be shown now with `export WERF_NELM_TRACE=1` Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
1 parent f6b68f1 commit 0d03bcf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/werf/common/common.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,10 +1523,14 @@ func ProcessLogOptions(cmdData *CmdData) error {
15231523
}
15241524

15251525
func GetNelmLogLevel(cmdData *CmdData) string {
1526+
if util.GetBoolEnvironmentDefaultFalse("WERF_NELM_TRACE") {
1527+
return action.TraceLogLevel
1528+
}
1529+
15261530
var logLevel string
15271531
switch {
15281532
case *cmdData.LogDebug:
1529-
logLevel = action.TraceLogLevel
1533+
logLevel = action.DebugLogLevel
15301534
case *cmdData.LogQuiet:
15311535
logLevel = action.ErrorLogLevel
15321536
default:

0 commit comments

Comments
 (0)