1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

Properly pass format argument to avoid MISSING (#290)

#273
This commit is contained in:
Josh Soref 2020-06-24 10:05:05 -04:00 committed by GitHub
parent 63b3391483
commit 0e18c4dd43
2 changed files with 4 additions and 4 deletions

View file

@ -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
})

View file

@ -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
})