[audit] warn if we cannot save templates and remove exception re-throw

This commit is contained in:
nymkappa 2023-05-13 15:28:29 +02:00
parent fa1cf7abb9
commit f95c16a78e
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -45,8 +45,7 @@ class BlocksSummariesRepository {
if (e.errno === 1062) { // ER_DUP_ENTRY - This scenario is possible upon node backend restart
logger.debug(`Cannot save block template for ${blockId} because it has already been indexed, ignoring`);
} else {
logger.debug(`Cannot save block template for ${blockId}. Reason: ${e instanceof Error ? e.message : e}`);
throw e;
logger.warn(`Cannot save block template for ${blockId}. Reason: ${e instanceof Error ? e.message : e}`);
}
}
}