Skip to content

Commit

Permalink
Change log level of noisy worker logs (#1748)
Browse files Browse the repository at this point in the history
These logs will be gone unless log level trace is enabled. This will get rid of 60%+ logs.
  • Loading branch information
tylerwowen authored Nov 12, 2024
1 parent 883748b commit 4513cca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,12 @@ public void transitionDeployState(String deployId, EnvironBean envBean) throws E
String lockName = String.format("STATE_TRANSITION-%s", deployId);
Connection connection = utilDAO.getLock(lockName);
if (connection != null) {
LOG.info(String.format("DB lock operation is successful: get lock %s", lockName));
LOG.trace(String.format("DB lock operation is successful: get lock %s", lockName));
try {
internalTransition(deployId, envBean);
} finally {
utilDAO.releaseLock(lockName, connection);
LOG.info(
LOG.trace(
String.format(
"DB lock operation is successful: release lock %s", lockName));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ List<BuildBean> getBuildCandidates(EnvironBean envBean, Interval interval, int s
if (buildTagBean.getTag() != null
&& buildTagBean.getTag().getValue() == TagValue.BAD_BUILD) {
// bad build, do not include
LOG.info(
LOG.debug(
"Env {} Build {} is tagged as BAD_BUILD, ignore",
envBean.getEnv_id(),
buildTagBean.getBuild());
Expand Down

0 comments on commit 4513cca

Please sign in to comment.