mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 02:21:03 +00:00
Don't panic when we try to register 2 global loggers (#3840)
This commit is contained in:
committed by
Robert Habermeier
parent
183c188111
commit
8051fd5445
@@ -919,7 +919,9 @@ fn init_logger(pattern: &str) {
|
|||||||
writeln!(buf, "{}", output)
|
writeln!(buf, "{}", output)
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.init();
|
if builder.try_init().is_err() {
|
||||||
|
info!("Not registering Substrate logger, as there is already a global logger registered!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn kill_color(s: &str) -> String {
|
fn kill_color(s: &str) -> String {
|
||||||
|
|||||||
Reference in New Issue
Block a user