File tree Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ edition = "2018"
7
7
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8
8
9
9
[dependencies ]
10
- tracing = " 0.1.12 "
11
- tracing-subscriber = " 0.2.0-alpha.5 "
10
+ tracing = " 0.1"
11
+ tracing-subscriber = " 0.2"
12
12
quanta = " 0.3.1"
13
13
termcolor = " 1.0.5"
14
14
ansi_term = " 0.12.1"
Original file line number Diff line number Diff line change @@ -222,26 +222,5 @@ where
222
222
writeln ! ( & mut visitor. stdout) . unwrap ( ) ;
223
223
}
224
224
225
- fn on_close ( & self , _: Id , _: Context < S > ) {
226
- // let end = Local::now();
227
- // let span = ctx.span(&id).expect("in on_close but span does not exist");
228
- // let ext = span.extensions();
229
- // let data = ext.get::<Data>().expect("span does not have metric data");
230
-
231
- // let indent = ctx.scope().collect::<Vec<_>>().len();
232
- // let mut stdout = self.stdout.lock();
233
- // self.print_indent(&mut stdout, indent)
234
- // .expect("Unable to write to stdout");
235
-
236
- // let elapsed = end - data.start;
237
- // writeln!(
238
- // &mut stdout,
239
- // "Elapsed: {timestamp}{unit}",
240
- // timestamp = Style::new()
241
- // .dimmed()
242
- // .paint(elapsed.num_milliseconds().to_string()),
243
- // unit = Style::new().dimmed().paint("ms"),
244
- // )
245
- // .expect("Unable to write to stdout");
246
- }
225
+ fn on_close ( & self , _: Id , _: Context < S > ) { }
247
226
}
You can’t perform that action at this time.
0 commit comments