File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 12
12
- Fixed composite bar requests (#1923 ), thanks @faysou
13
13
- Fixed average price calculation for ` ValueBarAggregator ` (#1927 ), thanks @faysou
14
14
- Fixed breaking protobuf issue by pinning ` protobuf ` and ` grpcio ` for dYdX (#1929 ), thanks @davidsblom
15
+ - Fixed edge case where exceptions raised in ` BacktestNode ` prior to engine init would not produce logs, thanks for reporting @faysou
15
16
16
17
---
17
18
Original file line number Diff line number Diff line change 25
25
from nautilus_trader .backtest .results import BacktestResult
26
26
from nautilus_trader .common .component import Logger
27
27
from nautilus_trader .common .component import LogGuard
28
+ from nautilus_trader .common .component import init_logging
29
+ from nautilus_trader .common .component import is_logging_initialized
28
30
from nautilus_trader .common .config import ActorFactory
29
31
from nautilus_trader .common .config import InvalidConfiguration
30
32
from nautilus_trader .core import nautilus_pyo3
@@ -159,6 +161,9 @@ def run(self) -> list[BacktestResult]:
159
161
)
160
162
results .append (result )
161
163
except Exception as e :
164
+ if not is_logging_initialized :
165
+ init_logging ()
166
+
162
167
# Broad catch all prevents a single backtest run from halting
163
168
# the execution of the other backtests (such as a zero balance exception).
164
169
Logger (type (self ).__name__ ).error (f"Error running backtest: { e } " )
You can’t perform that action at this time.
0 commit comments