Skip to content

Commit

Permalink
Release 1.147.1
Browse files Browse the repository at this point in the history
See release notes.
  • Loading branch information
cjdsellers authored Jun 6, 2022
2 parents c1251a9 + 04130fc commit 2394a81
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 13 deletions.
16 changes: 16 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# NautilusTrader 1.147.1 Beta

Released on 6th June 2022.

### Breaking Changes
None

### Enhancements
None

### Fixes
- Fixed incorrect backtest log timestamps (was using actual time)
- Fixed formatting of timestamps for nanoseconds zulu as per RFC3339

---

# NautilusTrader 1.147.0 Beta

Released on 4th June 2022.
Expand Down
5 changes: 3 additions & 2 deletions nautilus_core/common/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.
// -------------------------------------------------------------------------------------------------

use chrono::{DateTime, NaiveDateTime, Utc};
use chrono::{DateTime, NaiveDateTime, SecondsFormat, Utc};
use std::{
fmt::Display,
io::{self, BufWriter, Stderr, Stdout, Write},
Expand Down Expand Up @@ -140,7 +140,8 @@ impl Logger {
let fmt_line = format!(
"{bold}{utc}{startc} {color}[{level}] {trader_id}.{component}: {msg}{endc}\n",
bold = LogFormat::BOLD,
utc = DateTime::<Utc>::from_utc(datetime, Utc),
utc = DateTime::<Utc>::from_utc(datetime, Utc)
.to_rfc3339_opts(SecondsFormat::Nanos, true),
startc = LogFormat::ENDC,
color = color,
level = level,
Expand Down
10 changes: 5 additions & 5 deletions nautilus_trader/common/logging.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ cdef class LoggerAdapter:
return

self._logger.log(
unix_timestamp_ns(),
self._logger._clock.timestamp_ns(),
LogLevel.DEBUG,
color,
self.component,
Expand Down Expand Up @@ -474,7 +474,7 @@ cdef class LoggerAdapter:
return

self._logger.log(
unix_timestamp_ns(),
self._logger._clock.timestamp_ns(),
LogLevel.INFO,
color,
self.component,
Expand Down Expand Up @@ -507,7 +507,7 @@ cdef class LoggerAdapter:
return

self._logger.log(
unix_timestamp_ns(),
self._logger._clock.timestamp_ns(),
LogLevel.WARNING,
color,
self.component,
Expand Down Expand Up @@ -540,7 +540,7 @@ cdef class LoggerAdapter:
return

self._logger.log(
unix_timestamp_ns(),
self._logger._clock.timestamp_ns(),
LogLevel.ERROR,
color,
self.component,
Expand Down Expand Up @@ -573,7 +573,7 @@ cdef class LoggerAdapter:
return

self._logger.log(
unix_timestamp_ns(),
self._logger._clock.timestamp_ns(),
LogLevel.CRITICAL,
color,
self.component,
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nautilus_trader"
version = "1.147.0"
version = "1.147.1"
description = "A high-performance algorithmic trading platform and event-driven backtester"
authors = ["Nautech Systems <info@nautechsystems.io>"]
license = "LGPL-3.0-or-later"
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"label": "",
"message": "v1.147.0",
"message": "v1.147.1",
"color": "orange"
}

0 comments on commit 2394a81

Please sign in to comment.