Reduce orphan cleanup logging from info to debug

Signed-off-by: Jen Evans <jenevan@rei.com>
This commit is contained in:
Jen Evans
2023-05-10 09:21:09 -07:00
parent ae172d461a
commit 51064e6e5e
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend': patch
---
Change orphan cleanup task to debug log from info.
@@ -317,7 +317,7 @@ export class DefaultCatalogProcessingEngine implements CatalogProcessingEngine {
try {
await this.processingDatabase.transaction(async tx => {
const n = await this.processingDatabase.deleteOrphanedEntities(tx);
this.logger.info(`Deleted ${n} orphaned entities`);
this.logger.debug(`Deleted ${n} orphaned entities`);
});
} catch (error) {
this.logger.warn(`Failed to delete orphaned entities`, error);