Skip to content

Commit

Permalink
Fix print_config config option
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Feb 16, 2024
1 parent bbd3cf0 commit 95d1854
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ None
### Fixes
- Fixed FOK time in force behavior (allows fills beyond the top level, will cancel if cannot fill full size)
- Fixed IOC time in force behavior (allows fills beyond the top level, will cancel any remaining after all fills are applied)
- Fixed logging `print_config` config option (was not being passed through to the logging system)
- Fixed logging timestamps for backtesting (static clock was not being incrementally set to individual `TimeEvent` timestamps)
- Fixed account balance updates (fills from zero quantity `NETTING` positions will generate account balance updates)
- Fixed `Equity` short selling for `CASH` accounts (will now reject)
Expand Down
2 changes: 1 addition & 1 deletion nautilus_core/common/src/logging/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ impl Logger {
let print_config = config.print_config;
if print_config {
println!("STATIC_MAX_LEVEL={STATIC_MAX_LEVEL}");
println!("Logger initialized with {:?}", config);
println!("Logger initialized with {:?} {:?}", config, file_config);
}

match set_boxed_logger(Box::new(logger)) {
Expand Down
1 change: 1 addition & 0 deletions nautilus_trader/system/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def __init__( # noqa (too complex)
component_levels=logging.log_component_levels,
colors=logging.log_colors,
bypass=logging.bypass_logging,
print_config=logging.print_config,
)
elif self._environment == Environment.LIVE:
raise InvalidConfiguration(
Expand Down

0 comments on commit 95d1854

Please sign in to comment.