Skip to content

Commit 11b5c35

Browse files
committed
Update ownership; add lines to basic example.
1 parent c3b14f8 commit 11b5c35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tracing-tree"
3-
version = "0.1.1"
4-
authors = ["David Barsky <me@davidbarsky.com>"]
3+
version = "0.1.2"
4+
authors = ["David Barsky <me@davidbarsky.com>", "Nathan Whitaker"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"
77
description = "a tracing layer that represents prints a heirarchal tree of spans and events."

examples/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use tracing_subscriber::{layer::SubscriberExt, registry::Registry};
33
use tracing_tree::HierarchicalLayer;
44

55
fn main() {
6-
let subscriber = Registry::default().with(HierarchicalLayer::new(2));
6+
let subscriber = Registry::default().with(HierarchicalLayer::new(2).with_indent_lines(true));
77
tracing::subscriber::set_global_default(subscriber).unwrap();
88

99
let app_span = span!(Level::TRACE, "hierarchical-example", version = %0.1);

0 commit comments

Comments
 (0)