Skip to content

Commit

Permalink
chore: not show error from svg render
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Nov 8, 2024
1 parent 9eccf49 commit 97741e3
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
34 changes: 31 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lala_bar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ futures-util.workspace = true
serde.workspace = true

zbus.workspace = true
tracing-subscriber = "0.3.18"
tracing-subscriber = { version = "0.3.18", features = ["std", "env-filter"] }
anyhow = "1.0.93"
alsa = "0.9.1"

Expand Down
11 changes: 10 additions & 1 deletion lala_bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@ static PAUSE_HANDLE: LazyLock<svg::Handle> = LazyLock::new(|| svg::Handle::from_
const MAX_SHOWN_NOTIFICATIONS_COUNT: usize = 4;

pub fn main() -> Result<(), iced_layershell::Error> {
tracing_subscriber::fmt().init();
use tracing_subscriber::filter::LevelFilter;
tracing_subscriber::fmt()
.with_env_filter(
tracing_subscriber::filter::EnvFilter::builder()
.with_default_directive(LevelFilter::INFO.into())
.from_env_lossy()
.add_directive("usvg=off".parse().unwrap()), //.parse("usvg::parser::svgtree=off")
//.unwrap(),
)
.init();
LalaMusicBar::run(Settings {
layer_settings: LayerShellSettings {
size: Some((0, 35)),
Expand Down

0 comments on commit 97741e3

Please sign in to comment.