nerf incremental log levels

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-10-14 12:17:01 +02:00
parent 532791fc18
commit 2107965ad5
3 changed files with 10 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-incremental-ingestion': patch
---
Turn down the logging level on most "all is well" type log messages
@@ -67,13 +67,13 @@ export class IncrementalIngestionEngine
await this.manager.clearFinishedIngestions(
this.options.provider.getProviderName(),
);
this.options.logger.info(
this.options.logger.debug(
`incremental-engine: Ingestion ${ingestionId} rest period complete. Ingestion will start again`,
);
await this.manager.setProviderComplete(ingestionId);
} else {
this.options.logger.info(
this.options.logger.debug(
`incremental-engine: Ingestion '${ingestionId}' rest period continuing`,
);
}
@@ -92,7 +92,7 @@ export class IncrementalIngestionEngine
);
} else {
await this.manager.setProviderInterstitial(ingestionId);
this.options.logger.info(
this.options.logger.debug(
`incremental-engine: Ingestion '${ingestionId}' continuing`,
);
}
@@ -140,7 +140,7 @@ export class IncrementalIngestionEngine
);
await this.manager.setProviderIngesting(ingestionId);
} else {
this.options.logger.info(
this.options.logger.debug(
`incremental-engine: Ingestion '${ingestionId}' backoff continuing`,
);
}
@@ -167,7 +167,7 @@ export class IncrementalIngestionEngine
const providerName = this.options.provider.getProviderName();
const record = await this.manager.getCurrentIngestionRecord(providerName);
if (record) {
this.options.logger.info(
this.options.logger.debug(
`incremental-engine: Ingestion record found: '${record.id}'`,
);
return {
@@ -89,8 +89,6 @@ export class IncrementalCatalogBuilder {
entityProvider: provider.getProviderName(),
});
logger.info(`Connecting`);
engine = new IncrementalIngestionEngine({
...options,
ready,