Skip to content

Commit b855b16

Browse files
studychaowllenyj
authored andcommitted
log: catch stdlog
catch stdlog from dragonball so that it could be printed out through slog. Signed-off-by: Chao Wu <chaowu@linux.alibaba.com>
1 parent 4494435 commit b855b16

3 files changed

Lines changed: 66 additions & 51 deletions

File tree

Cargo.lock

Lines changed: 63 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ slog = "2.7.0"
2323
slog-term = "2.9.0"
2424
slog-json = "2.6.1"
2525
slog-scope = "4.4.0"
26+
slog-stdlog = "4.1.1"
2627
serde_json = "1.0.89"
2728
crossbeam-channel = "0.5.6"
29+

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ fn main() -> Result<()> {
4343
);
4444

4545
let _guard = set_global_logger(root);
46+
slog_stdlog::init().unwrap();
4647
run_with_cli(args)?;
4748
}
4849
Some(Commands::Update) => {

0 commit comments

Comments
 (0)