Skip to content

Commit

Permalink
Reduce some verbose log levels (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
offa authored Jan 19, 2024
1 parent 512d6c4 commit 91ee286
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public boolean start() throws Exception {
if (lrm.createResource(resource.resource)) {
LockableResourcesManager.printLogs(
"Resource [" + resource.resource + "] did not exist. Created.",
Level.INFO,
Level.FINE,
LOGGER,
logger);
}
Expand Down Expand Up @@ -113,12 +113,12 @@ private void onLockFailed(PrintStream logger, List<LockableResourcesStruct> reso
if (step.skipIfLocked) {
this.printBlockCause(logger, resourceHolderList);
LockableResourcesManager.printLogs(
"[" + step + "] is not free, skipping execution ...", Level.INFO, LOGGER, logger);
"[" + step + "] is not free, skipping execution ...", Level.FINE, LOGGER, logger);
getContext().onSuccess(null);
} else {
this.printBlockCause(logger, resourceHolderList);
LockableResourcesManager.printLogs(
"[" + step + "] is not free, waiting for execution ...", Level.INFO, LOGGER, logger);
"[" + step + "] is not free, waiting for execution ...", Level.FINE, LOGGER, logger);
LockableResourcesManager lrm = LockableResourcesManager.get();
lrm.queueContext(getContext(), resourceHolderList, step.toString(), step.variable);
}
Expand Down Expand Up @@ -154,7 +154,7 @@ public static void proceed(
node = context.get(FlowNode.class);
logger = context.get(TaskListener.class).getLogger();
LockableResourcesManager.printLogs(
"Lock acquired on [" + resourceDescription + "]", Level.INFO, LOGGER, logger);
"Lock acquired on [" + resourceDescription + "]", Level.FINE, LOGGER, logger);
} catch (Exception e) {
context.onFailure(e);
return;
Expand Down Expand Up @@ -225,7 +225,7 @@ protected void finished(StepContext context) throws Exception {
.unlockNames(this.resourceNames, context.get(Run.class), this.inversePrecedence);
LockableResourcesManager.printLogs(
"Lock released on resource [" + resourceDescription + "]",
Level.INFO,
Level.FINE,
LOGGER,
context.get(TaskListener.class).getLogger());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ private void freeResources(List<LockableResource> unlockResources, @Nullable Run
uncacheIfFreeing(resource, true, false);

if (resource.isEphemeral()) {
LOGGER.info("Remove ephemeral resource: " + resource);
LOGGER.fine("Remove ephemeral resource: " + resource);
this.resources.remove(resource);
}
}
Expand Down

0 comments on commit 91ee286

Please sign in to comment.