message: pfff ... dump logged errors
diff: @@ -16,6 +16,7 @@ import ContextProvider from './context/ContextProvider';
  import Cypher from '../../src/utils/Cypher';
  import { DataResult } from '../../src/types/DataResult';
  import Decimal from 'decimal.js';
  +import LoggingStorage from '../../src/storage/mongodb/LoggingStorage';
  import SiteAreaContext from './context/SiteAreaContext';
  import SiteContext from './context/SiteContext';
  import { StatusCodes } from 'http-status-codes';
  @@ -501,12 +502,11 @@ export default class BillingTestHelper {
  }
  public async dumpLastErrors(): Promise<void> {
  - const params = { Level: 'E' };
  - const paging = { limit: 2, skip: 0 };
  - const ordering = [{ field: '-timestamp' }];
  - const response = await this.adminUserService.logsApi.readAll(params, paging, ordering);
  - if (response?.data?.result.length > 0) {
  - for (const loggedError of response?.data?.result) {
  + const params = { levels: ['E'] };
  + const dbParams = { limit: 2, skip: 0, sort: { timestamp: -1 } }; // the 2 last errors
  + const loggedErrors = await LoggingStorage.getLogs(this.tenantContext.getTenant(), params, dbParams, null);
  + if (loggedErrors?.result.length > 0) {
  + for (const loggedError of loggedErrors.result) {
  console.error(
  '-----------------------------------------------\n' +
  'Logged Error: \n' +
  