fixed up logger error to make it better to handle in code

This commit is contained in:
Bojan Kucera 2025-06-07 11:58:24 -04:00
parent db66687f48
commit d0bb4db042
18 changed files with 51 additions and 45 deletions

View file

@ -162,7 +162,7 @@ export class VectorEngine {
signals
};
} catch (error) {
this.logger.error('Vectorized strategy execution failed', { error });
this.logger.error('Vectorized strategy execution failed', error);
throw error;
}
}
@ -383,7 +383,7 @@ export class VectorEngine {
this.logger.info(`Running vectorized backtest for strategy: ${strategy.id}`);
results[strategy.id] = await this.executeVectorizedStrategy(data, strategy.code);
} catch (error) {
this.logger.error(`Backtest failed for strategy: ${strategy.id}`, { error });
this.logger.error(`Backtest failed for strategy: ${strategy.id}`, error);
// Continue with other strategies
}
}