mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 18:37:59 +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)
|
||||
});
|
||||
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user