Skip to content

Commit

Permalink
refactor(front50): suppress noisy logs in DependentPipelineStarter
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorv-mahajan authored and dbyron-sf committed Feb 23, 2024
1 parent f5fb537 commit 8aa8a77
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ class DependentPipelineStarter implements ApplicationContextAware {
throw new ConfigurationException("Pipeline '${pipelineConfig.name}' is disabled and cannot be triggered")
}

if (log.isInfoEnabled()) {
log.info('triggering dependent pipeline {}:{}', pipelineConfig.id,
log.info("triggering dependent pipeline ${pipelineConfig.id}")
if (log.isDebugEnabled()) {
log.debug('triggering dependent pipeline {}:{}', pipelineConfig.id,
objectMapper.writeValueAsString(pipelineConfig))
}

Expand Down Expand Up @@ -180,8 +181,9 @@ class DependentPipelineStarter implements ApplicationContextAware {
def augmentedContext = [trigger: pipelineConfig.trigger]
def processedPipeline = contextParameterProcessor.processPipeline(pipelineConfig, augmentedContext, false)

if (log.isInfoEnabled()) {
log.info('running pipeline {}:{}', pipelineConfig.id, objectMapper.writeValueAsString(processedPipeline))
log.info("running pipeline ${pipelineConfig.id}")
if (log.isDebugEnabled()) {
log.debug('running pipeline {}:{}', pipelineConfig.id, objectMapper.writeValueAsString(processedPipeline))
}

Callable<PipelineExecution> callable
Expand Down

0 comments on commit 8aa8a77

Please sign in to comment.