From 76df51f59fec093c19bd7686fc87391cdb3ce6ed Mon Sep 17 00:00:00 2001 From: Pfych Date: Sat, 25 Sep 2021 15:42:45 +1000 Subject: [PATCH] Less repeated logging --- bot/src/chartSearch/buildChartEmbed.ts | 2 +- bot/src/chartSearch/chartSearch.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bot/src/chartSearch/buildChartEmbed.ts b/bot/src/chartSearch/buildChartEmbed.ts index 31461b4a4..bf942d535 100644 --- a/bot/src/chartSearch/buildChartEmbed.ts +++ b/bot/src/chartSearch/buildChartEmbed.ts @@ -60,7 +60,7 @@ export const getPBForChart = async ( throw new Error(data.description); } } catch (e) { - logger.info(e); + logger.error(e); throw new Error("Unable to fetch PBs for chart"); } diff --git a/bot/src/chartSearch/chartSearch.ts b/bot/src/chartSearch/chartSearch.ts index 9e92a65b4..c6f6fc747 100644 --- a/bot/src/chartSearch/chartSearch.ts +++ b/bot/src/chartSearch/chartSearch.ts @@ -51,8 +51,6 @@ export const getSongMetaFiltered = async (chartName: string, game: Game): Promis const songMeta = await getSongMeta(chartName); const songMetaFiltered = songMeta.filter((chart) => chart.game === game); if (songMetaFiltered.length === 0) { - logger.info("No songs found"); - throw new Error("No songs found"); }