Skip to content

Commit

Permalink
Only log State transition result when state changes (#1753)
Browse files Browse the repository at this point in the history
This log line is about 60% of total worker log volume. For most of the time, this line is not very helpful unless there is a change.
  • Loading branch information
tylerwowen authored Nov 15, 2024
1 parent fd2bbcf commit 09298a8
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,12 @@ void transition(DeployBean deployBean, DeployBean newDeployBean, EnvironBean env
}
}
newDeployBean.setState(DeployState.SUCCEEDING);
LOG.info(
"Set deploy {} as SUCCEEDING since {} agents are succeeded.",
deployId,
succeeded);
if (!DeployState.SUCCEEDING.equals(oldState)) {
LOG.info(
"Set deploy {} as SUCCEEDING since {} agents are succeeded.",
deployId,
succeeded);
}
return;
}

Expand Down

0 comments on commit 09298a8

Please sign in to comment.