Skip to content

Commit 022c98b

Browse files
committed
refactor(video): use warn to log unsupported mpv property
1 parent decba8c commit 022c98b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/video/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use gtk::glib::{self, Variant, closure_local, object::ObjectExt};
66
use itertools::Itertools;
77
use libmpv2::Format;
88
use serde_json::{Number, Value};
9-
use tracing::error;
9+
use tracing::warn;
1010

1111
use crate::app::video::config::{BOOL_PROPERTIES, FLOAT_PROPERTIES, STRING_PROPERTIES};
1212

@@ -97,7 +97,7 @@ impl Video {
9797
name if STRING_PROPERTIES.contains(&name) => {
9898
widget.observe_property(name, Format::String);
9999
}
100-
_ => error!("Failed to observe property {name}: Unsupported"),
100+
_ => warn!("Failed to observe property {name}: Unsupported"),
101101
};
102102
}
103103

@@ -120,7 +120,7 @@ impl Video {
120120
widget.set_property(name, value);
121121
}
122122
}
123-
name => error!("Failed to set property {name}: Unsupported"),
123+
name => warn!("Failed to set property {name}: Unsupported"),
124124
};
125125
}
126126
}

0 commit comments

Comments
 (0)