Browse Source

Improve error log for timeouts

pull/2688/head
Thomas 2 years ago
parent
commit
424859b21d
  1. 2
      apps/api/src/services/data-provider/coingecko/coingecko.service.ts

2
apps/api/src/services/data-provider/coingecko/coingecko.service.ts

@ -231,7 +231,7 @@ export class CoinGeckoService implements DataProviderInterface {
let message = error;
if (error?.code === 'ABORT_ERR') {
`RequestError: The operation was aborted because the request to the data provider took more than ${DEFAULT_REQUEST_TIMEOUT}ms`;
message = `RequestError: The operation was aborted because the request to the data provider took more than ${DEFAULT_REQUEST_TIMEOUT}ms`;
}
Logger.error(message, 'CoinGeckoService');

Loading…
Cancel
Save