Skip to content

Commit

Permalink
chore(conditions): Adding better log messages (#2867)
Browse files Browse the repository at this point in the history
- update log messages
  • Loading branch information
jeyrschabu authored Apr 26, 2019
1 parent f2c6df2 commit 5d14938
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public TaskResult execute(@Nonnull Stage stage) {
Instant startTime = getStartTime(stage);
Instant now = clock.instant();
if (ctx.getStatus() != null && startTime.plus(backoff).isAfter(now)) {
log.info("Paused deployment for execution {}, cluster",
stage.getExecution().getId(), ctx.getCluster());
log.debug("Deployment to {} has been conditionally paused (executionId: {})",
ctx.getCluster(), stage.getExecution().getId());
return new TaskResult(
ExecutionStatus.RUNNING,
Collections.singletonMap("status", Status.WAITING)
Expand All @@ -103,8 +103,8 @@ public TaskResult execute(@Nonnull Stage stage) {

final Status status = conditions.isEmpty() ? Status.SKIPPED : Status.WAITING;
if (status == Status.WAITING) {
log.info("Pausing deployment for execution {}. cluster {}: {}",
stage.getExecution().getId(), ctx.getCluster(), conditions);
log.debug("Deployment to {} has been conditionally paused (executionId: {}). Conditions: {}",
ctx.getCluster(), stage.getExecution().getId(), conditions);

return new TaskResult(
ExecutionStatus.RUNNING,
Expand Down

0 comments on commit 5d14938

Please sign in to comment.