Skip to content

Commit

Permalink
Merge pull request #99 from Clever/log-levels
Browse files Browse the repository at this point in the history
reduce log levels
  • Loading branch information
ghirsch1 authored Mar 10, 2021
2 parents 18b85ed + fbb5fe8 commit ae66c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/sfncli/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ func (t *TaskRunner) Process(ctx context.Context, args []string, input string) e
go t.handleSignals(ctx)

if tmpDir == "" {
t.logger.InfoD("exec-command-start", logger.M{"args": args, "cmd": t.cmd})
t.logger.TraceD("exec-command-start", logger.M{"args": args, "cmd": t.cmd})
} else {
t.logger.InfoD("exec-command-start", logger.M{"args": args, "cmd": t.cmd, "workdirectory": tmpDir})
t.logger.TraceD("exec-command-start", logger.M{"args": args, "cmd": t.cmd, "workdirectory": tmpDir})
}
start := time.Now()
if err := t.execCmd.Run(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/sfncli/sfncli.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func main() {
cw.SetActiveState(true)
input := *getATOutput.Input
token := *getATOutput.TaskToken
log.InfoD("getactivitytask", logger.M{"input": input, "token": token})
log.TraceD("getactivitytask", logger.M{"input": input, "token": token})

// Create a context for this task. We'll cancel this context on errors.
// Anything spawned on behalf of the task should use this context.
Expand Down

0 comments on commit ae66c22

Please sign in to comment.