Skip to content

Commit a9b4da6

Browse files
richardlawleyyadvr
authored andcommitted
server: reduce verbosity of Async Job Manager log messages (#3616)
On a Cloudstack instance with log verbosity set to INFO, there are 2 messages generated every 10 seconds about cleaning up expired async jobs. This makes the log messages much noisier than they need to be. This PR reduces that message to trace level, since there are actually useful messages at INFO level in that class.
1 parent 524b995 commit a9b4da6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

framework/jobs/src/main/java/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ protected void runInContext() {
835835

836836
public void reallyRun() {
837837
try {
838-
s_logger.info("Begin cleanup expired async-jobs");
838+
s_logger.trace("Begin cleanup expired async-jobs");
839839

840840
// forcefully cancel blocking queue items if they've been staying there for too long
841841
List<SyncQueueItemVO> blockItems = _queueMgr.getBlockedQueueItems(JobCancelThresholdMinutes.value() * 60000, false);
@@ -885,7 +885,7 @@ public void reallyRun() {
885885
}
886886
}
887887

888-
s_logger.info("End cleanup expired async-jobs");
888+
s_logger.trace("End cleanup expired async-jobs");
889889
} catch (Throwable e) {
890890
s_logger.error("Unexpected exception when trying to execute queue item, ", e);
891891
}

0 commit comments

Comments
 (0)