Skip to content

Commit

Permalink
Log metrics error instead of throwing (for prod debugging)
Browse files Browse the repository at this point in the history
  • Loading branch information
soggy-mushroom committed Dec 10, 2024
1 parent 745f8a5 commit 4dad1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/preprints-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const preprintsController = (repo: ArticleRepository) => {
};
} catch (err) {
if ((err as any)?.response?.status !== 404) {
throw err;
logger.error(err)

Check failure on line 93 in src/controller/preprints-controller.ts

View workflow job for this annotation

GitHub Actions / test

Expected indentation of 14 spaces but found 13

Check failure on line 93 in src/controller/preprints-controller.ts

View workflow job for this annotation

GitHub Actions / test

Missing semicolon
}
logger.info(`USE_ELIFE_METRICS configured, but request for ${metricsSummaryUrl} return 404`);
}
Expand Down

0 comments on commit 4dad1f1

Please sign in to comment.