diff --git a/src/index.ts b/src/index.ts index 4a1127b..83a0197 100644 --- a/src/index.ts +++ b/src/index.ts @@ -294,8 +294,9 @@ const main = async () => { .then(() => { gpaFetchDurationHistogram.record(Date.now() - startFetch); }) - .catch(() => { + .catch((e) => { logger.error('Failed to fetch GPA'); + console.log(e); }) .finally(() => { // eslint-disable-next-line @typescript-eslint/no-unused-vars diff --git a/src/publishers/dlobPublisher.ts b/src/publishers/dlobPublisher.ts index 1a3e317..3a86e1e 100644 --- a/src/publishers/dlobPublisher.ts +++ b/src/publishers/dlobPublisher.ts @@ -235,8 +235,9 @@ const main = async () => { setTimeout(() => { dlobProvider .fetch() - .catch(() => { + .catch((e) => { logger.error('Failed to fetch GPA'); + console.log(e); }) .finally(() => { // eslint-disable-next-line @typescript-eslint/no-unused-vars