Fixes/recover dying during starting (#1224)

* fix: Fix the panic becaues of the double install logging

Co-authored-by: Aiden McClelland <dr-bonez@users.noreply.github.com>

* fix: Clippy fix for docker

* chore: Add notification on top of error

Co-authored-by: Aiden McClelland <dr-bonez@users.noreply.github.com>
This commit is contained in:
J M
2022-02-16 16:38:59 -07:00
committed by GitHub
parent d204c1dfba
commit 4a69b1138d
4 changed files with 54 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ impl EmbassyLogger {
}
pub fn init() -> Self {
Self::base_subscriber().init();
color_eyre::install().expect("Color Eyre Init");
color_eyre::install().unwrap_or_else(|_| tracing::warn!("tracing too many times"));
EmbassyLogger {}
}