Browse Source

Harmonize logger output

pull/2321/head
Thomas 2 years ago
parent
commit
f7e21a671b
  1. 2
      apps/api/src/app/portfolio/portfolio-calculator.ts
  2. 4
      apps/api/src/services/data-gathering/data-gathering.service.ts

2
apps/api/src/app/portfolio/portfolio-calculator.ts

@ -784,7 +784,7 @@ export class PortfolioCalculator {
); );
} else if (!currentPosition.quantity.eq(0)) { } else if (!currentPosition.quantity.eq(0)) {
Logger.warn( Logger.warn(
`Missing historical market data for symbol ${currentPosition.symbol}`, `Missing historical market data for ${currentPosition.symbol} (${currentPosition.dataSource})`,
'PortfolioCalculator' 'PortfolioCalculator'
); );
hasErrors = true; hasErrors = true;

4
apps/api/src/services/data-gathering/data-gathering.service.ts

@ -145,7 +145,9 @@ export class DataGatheringService {
}); });
} catch (error) { } catch (error) {
Logger.error( Logger.error(
`Failed to enhance data for symbol ${symbol} by ${dataEnhancer.getName()}`, `Failed to enhance data for ${symbol} (${
assetProfile.dataSource
}) by ${dataEnhancer.getName()}`,
error, error,
'DataGatheringService' 'DataGatheringService'
); );

Loading…
Cancel
Save