add conosle log

This commit is contained in:
Nour Alharithi
2023-12-05 09:23:04 -08:00
parent 05a1a92598
commit ff8f2f2f13
2 changed files with 4 additions and 2 deletions

View File

@@ -294,8 +294,9 @@ const main = async () => {
.then(() => { .then(() => {
gpaFetchDurationHistogram.record(Date.now() - startFetch); gpaFetchDurationHistogram.record(Date.now() - startFetch);
}) })
.catch(() => { .catch((e) => {
logger.error('Failed to fetch GPA'); logger.error('Failed to fetch GPA');
console.log(e);
}) })
.finally(() => { .finally(() => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars

View File

@@ -235,8 +235,9 @@ const main = async () => {
setTimeout(() => { setTimeout(() => {
dlobProvider dlobProvider
.fetch() .fetch()
.catch(() => { .catch((e) => {
logger.error('Failed to fetch GPA'); logger.error('Failed to fetch GPA');
console.log(e);
}) })
.finally(() => { .finally(() => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars