From f6af6523d4f317aa2b0da8b5d58fa146d6ae53ca Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 20 Feb 2022 16:33:00 +0100 Subject: [PATCH] Log error --- .../data-provider/yahoo-finance/yahoo-finance.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts b/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts index 2b4fe8f92..317c86a8e 100644 --- a/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts +++ b/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts @@ -25,7 +25,7 @@ import { @Injectable() export class YahooFinanceService implements DataProviderInterface { - private yahooFinanceHostname = 'https://query1.finance.yahoo.com'; + private readonly yahooFinanceHostname = 'https://query2.finance.yahoo.com'; public constructor( private readonly cryptocurrencyService: CryptocurrencyService @@ -274,7 +274,9 @@ export class YahooFinanceService implements DataProviderInterface { name: value.name }); } - } catch {} + } catch (error) { + Logger.error(error); + } return { items }; }