From 4513ccaec9b60a79f03663172e52e34ed8a400d1 Mon Sep 17 00:00:00 2001 From: Tyler Ouyang Date: Tue, 12 Nov 2024 15:36:25 -0800 Subject: [PATCH] Change log level of noisy worker logs (#1748) These logs will be gone unless log level trace is enabled. This will get rid of 60%+ logs. --- .../com/pinterest/deployservice/handler/CommonHandler.java | 4 ++-- .../java/com/pinterest/teletraan/worker/AutoPromoter.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy-service/common/src/main/java/com/pinterest/deployservice/handler/CommonHandler.java b/deploy-service/common/src/main/java/com/pinterest/deployservice/handler/CommonHandler.java index 671498f91d..4252784ea2 100644 --- a/deploy-service/common/src/main/java/com/pinterest/deployservice/handler/CommonHandler.java +++ b/deploy-service/common/src/main/java/com/pinterest/deployservice/handler/CommonHandler.java @@ -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)); } diff --git a/deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/worker/AutoPromoter.java b/deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/worker/AutoPromoter.java index 9ce07b66c6..f693630a7f 100644 --- a/deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/worker/AutoPromoter.java +++ b/deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/worker/AutoPromoter.java @@ -536,7 +536,7 @@ List 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());