diff options
author | Astraea Quinn S <52372765+PartiallyUntyped@users.noreply.github.com> | 2025-04-15 12:19:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-15 10:19:13 +0000 |
commit | 064f82d0a3ccc5f964e0a161d891b53a692d0729 (patch) | |
tree | 2c879e13791bf69c72b594d717dc79daf222557c /ports/servoshell/egl/ohos/simpleservo.rs | |
parent | 1ea80c4335f7858f0550832e92635e3682ac5b0e (diff) | |
download | servo-064f82d0a3ccc5f964e0a161d891b53a692d0729.tar.gz servo-064f82d0a3ccc5f964e0a161d891b53a692d0729.zip |
[OHOS] Allow setting the log-filter via cli arguments (#36444)
This PR allows setting the log-filter according to the env_filter spec
via CLI arguments.
Testing is currently in progress, will be done on machines running OHOS.
---------
Signed-off-by: Astraea Quinn Skoutelli <astraea.quinn.skoutelli@huawei.com>
Co-authored-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Diffstat (limited to 'ports/servoshell/egl/ohos/simpleservo.rs')
-rw-r--r-- | ports/servoshell/egl/ohos/simpleservo.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/servoshell/egl/ohos/simpleservo.rs b/ports/servoshell/egl/ohos/simpleservo.rs index 49c684627c3..3bb1191f3f6 100644 --- a/ports/servoshell/egl/ohos/simpleservo.rs +++ b/ports/servoshell/egl/ohos/simpleservo.rs @@ -97,6 +97,8 @@ pub fn init( }; crate::init_tracing(servoshell_preferences.tracing_filter.as_deref()); + #[cfg(target_env = "ohos")] + crate::egl::ohos::set_log_filter(servoshell_preferences.log_filter.as_deref()); let Ok(window_size) = (unsafe { super::get_xcomponent_size(xcomponent, native_window) }) else { return Err("Failed to get xcomponent size"); |