Skip to content

Commit

Permalink
improve debug messages for check monitoring actions
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Jul 20, 2018
1 parent fb74527 commit 190155d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,7 @@ func runChecker(checker *checks.Checker, checkReportCh chan *checks.Report, repo
stdout, stderr, exitCode, err := checker.Config.Action.RunWithEnv(env)

if stderr != "" {
logger.Warningf("Checker %q action stderr: %s", checker.Name, stderr)
} else if err != nil {
logger.Warningf("Checker %q action stdout: %q exitCode: %d error: %s", checker.Name, stdout, exitCode, err)
logger.Warningf("Checker %q action stdout: %q exitCode: %d stderr: %s", checker.Name, stdout, exitCode, stderr)
} else {
logger.Debugf("Checker %q action stdout: %q exitCode: %d", checker.Name, stdout, exitCode)
}
Expand Down

0 comments on commit 190155d

Please sign in to comment.