Skip to content

Commit ddf724e

Browse files
fix(log): minor log refactor
1 parent 3b3894b commit ddf724e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

orca-sql/src/main/kotlin/com/netflix/spinnaker/orca/sql/pipeline/persistence/SqlExecutionRepository.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ class SqlExecutionRepository(
512512

513513
val finalResult: MutableList<String> = mutableListOf()
514514

515-
log.info("getting execution ids")
516515
withPool(poolName) {
517516
val baseQuery = jooq.select(field("config_id"), field("id"))
518517
.from(table)
@@ -570,7 +569,7 @@ class SqlExecutionRepository(
570569
.queryTimeout(queryTimeoutSeconds) // add an explicit timeout so that the query doesn't run forever
571570
.fetch()
572571

573-
log.info("getting stage information for all the executions found so far")
572+
log.debug("getting stage information for all the executions found so far")
574573
return ExecutionMapper(mapper, stageReadSize,compressionProperties, pipelineRefEnabled).map(baseQuery.intoResultSet(), jooq)
575574
}
576575
}

orca-web/src/main/groovy/com/netflix/spinnaker/orca/controllers/TaskController.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,9 @@ class TaskController {
607607

608608
// get all relevant pipeline and strategy configs from front50
609609
def pipelineConfigIds = front50Service.getPipelines(application, false)*.id as List<String>
610-
log.info("received ${pipelineConfigIds.size()} pipelines for application: $application from front50")
610+
log.debug("received ${pipelineConfigIds.size()} pipelines for application: $application from front50")
611611
def strategyConfigIds = front50Service.getStrategies(application)*.id as List<String>
612-
log.info("received ${strategyConfigIds.size()} strategies for application: $application from front50")
612+
log.debug("received ${strategyConfigIds.size()} strategies for application: $application from front50")
613613

614614
def allFront50PipelineConfigIds = pipelineConfigIds + strategyConfigIds
615615

@@ -628,11 +628,11 @@ class TaskController {
628628

629629
allPipelineExecutions.sort(startTimeOrId)
630630
if (!expand) {
631-
log.info("unexpanding pipeline executions")
631+
log.debug("unexpanding pipeline executions")
632632
unexpandPipelineExecutions(allPipelineExecutions)
633633
}
634634

635-
log.info("filtering pipelines by history")
635+
log.debug("filtering pipelines by history")
636636
return filterPipelinesByHistoryCutoff(allPipelineExecutions, limit)
637637
}
638638

0 commit comments

Comments
 (0)