Skip to content

Commit

Permalink
Merge pull request #2003 from blockstack/fix/debug-logs
Browse files Browse the repository at this point in the history
fix: enable debug logs in release build
  • Loading branch information
kantai authored Oct 26, 2020
2 parents edd559a + 341c3d2 commit a4deb7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ percent-encoding = "2.1.0"
sha2 = "0.8.0"
prometheus = { version = "0.9", optional = true }
integer-sqrt = "0.1.3"
slog = "2.5.2"
slog = { version = "2.5.2", features = [ "max_level_trace" ] }
slog-term = "2.6.0"
slog-json = { version = "2.3.0", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion src/util/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn make_logger() -> Logger {
if env::var("BLOCKSTACK_LOG_JSON") == Ok("1".into()) {
make_json_logger()
} else {
let plain = slog_term::PlainSyncDecorator::new(std::io::stdout());
let plain = slog_term::PlainSyncDecorator::new(std::io::stderr());
let drain = TermFormat::new(plain);

let logger = Logger::root(drain.fuse(), o!());
Expand Down
2 changes: 1 addition & 1 deletion testnet/stacks-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ http-types = "1.0"
base64 = "0.12.0"
backtrace = "0.3.50"
libc = "0.2"
slog = "2.5.2"
slog = { version = "2.5.2", features = [ "max_level_trace" ] }

[dev-dependencies]
warp = "0.2"
Expand Down

0 comments on commit a4deb7a

Please sign in to comment.