}
private startLogStatisticsInterval(): void {
- const logStatisticsInterval = Configuration.getLogStatisticsInterval();
+ const logStatisticsInterval = Configuration.getLog().enabled
+ ? Configuration.getLog().statisticsInterval
+ : 0;
if (logStatisticsInterval > 0 && !this.displayInterval) {
this.displayInterval = setInterval(() => {
this.logStatistics();
logStatisticsInterval
)}`
);
- } else {
+ } else if (Configuration.getLog().enabled) {
logger.info(
`${this.logPrefix()} log interval is set to ${logStatisticsInterval?.toString()}. Not logging statistics`
);