From 64b8d2afa47ff6938d7617e00f1260a95c35268e Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Wed, 24 Jun 2020 10:05:05 -0400 Subject: [PATCH] Properly pass format argument to avoid MISSING (#290) #273 --- pkg/runner/run_context.go | 4 ++-- pkg/runner/step_context.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index a3f49f59..e0e33384 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -61,9 +61,9 @@ func (rc *RunContext) startJobContainer() common.Executor { rawLogger := common.Logger(ctx).WithField("raw_output", true) logWriter := common.NewLineWriter(rc.commandHandler(ctx), func(s string) bool { if rc.Config.LogOutput { - rawLogger.Infof(s) + rawLogger.Infof("%s", s) } else { - rawLogger.Debugf(s) + rawLogger.Debugf("%s", s) } return true }) diff --git a/pkg/runner/step_context.go b/pkg/runner/step_context.go index 66291b73..247a1c05 100644 --- a/pkg/runner/step_context.go +++ b/pkg/runner/step_context.go @@ -141,9 +141,9 @@ func (sc *StepContext) newStepContainer(ctx context.Context, image string, cmd [ rawLogger := common.Logger(ctx).WithField("raw_output", true) logWriter := common.NewLineWriter(rc.commandHandler(ctx), func(s string) bool { if rc.Config.LogOutput { - rawLogger.Infof(s) + rawLogger.Infof("%s", s) } else { - rawLogger.Debugf(s) + rawLogger.Debugf("%s", s) } return true })