title: My catch block handle the promise rejection but I cannot log the error
body: <p>Guys maybe you can help me on this. Do you know why</p>
  <blockquote>
  <p>Error while trying to get transaction from ${network} between
  ${startDate} and ${endDate}</p>
  </blockquote>
  <p>is printed in the logger but the error it is not ?</p>
  <pre><code>try {
      const rawTransactions = await getTransactions(startDate, endDate);
  
      logger.info(`Job for network ${network} just finished. Time ellapsed: ${dayjs().diff(now, 'second')}s`);
    } catch (err) {
      logger.error(`Error while trying to get transaction from ${network} between ${startDate} and ${endDate}`);
      logger.error(err);
    }
  </code></pre>
  <p>The error occurs in getTransactions</p>
  <pre><code>async getTransactions(startDate, endDate) {
      const config = {
        method: 'get',
        url: `https://apiv2.effiliation.com/apiv2/transaction.json?key=${process.env.EFFILIATION_AUTH_TOKEN}&amp;start=${dayjs(startDate, 'YYYY-MM-DD').format('DD/MM/YYYY')}&amp;end=${dayjs(endDate, 'YYYY-MM-DD').format('DD/MM/YYYY')}&amp;type=datetran&amp;all=yes`,
      };
      const results = await axios(config);
      const transactions = results.data.rapport_effi_id;
      return transactions;
    }
  </code></pre>