Merge pull request #17673 from jen13501/set_orphan_cleanup_interval

Change Orphan Cleanup process to debug logging
This commit is contained in:
Fredrik Adelöw
2023-05-16 11:03:46 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
@@ -317,7 +317,9 @@ 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`);
if (n > 0) {
this.logger.info(`Deleted ${n} orphaned entities`);
}
});
} catch (error) {
this.logger.warn(`Failed to delete orphaned entities`, error);