aboutsummaryrefslogtreecommitdiffstats
path: root/ports/servoshell/egl/ohos/simpleservo.rs
diff options
context:
space:
mode:
authorJonathan Schwender <55576758+jschwe@users.noreply.github.com>2025-02-08 08:10:12 +0100
committerGitHub <noreply@github.com>2025-02-08 07:10:12 +0000
commit654df4c8b7cc9e60881021e5e8986df245088ada (patch)
treedb1404f34655682cf3fe92dac1c6d5bb6ab99c5c /ports/servoshell/egl/ohos/simpleservo.rs
parent39c1e5d5d6680739f6b6c8ffe0096ff442927af6 (diff)
downloadservo-654df4c8b7cc9e60881021e5e8986df245088ada.tar.gz
servo-654df4c8b7cc9e60881021e5e8986df245088ada.zip
Add cli option for tracing-filter (#35370)
Using environment variables is not really an option on ohos/android, so add a CLI option to configure tracing. Making it a `pref`, so that we can persist the filter might also be desirable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Diffstat (limited to 'ports/servoshell/egl/ohos/simpleservo.rs')
-rw-r--r--ports/servoshell/egl/ohos/simpleservo.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/servoshell/egl/ohos/simpleservo.rs b/ports/servoshell/egl/ohos/simpleservo.rs
index 847664ece0d..723cd4c6105 100644
--- a/ports/servoshell/egl/ohos/simpleservo.rs
+++ b/ports/servoshell/egl/ohos/simpleservo.rs
@@ -36,7 +36,6 @@ pub fn init(
callbacks: Box<dyn HostTrait>,
) -> Result<Rc<RunningAppState>, &'static str> {
info!("Entered simpleservo init function");
- crate::init_tracing();
crate::init_crypto();
let resource_dir = PathBuf::from(&options.resource_dir).join("servo");
resources::set(Box::new(ResourceReaderInstance::new(resource_dir)));
@@ -61,6 +60,8 @@ pub fn init(
},
};
+ crate::init_tracing(servoshell_preferences.tracing_filter.as_deref());
+
// Initialize surfman
let connection = Connection::new().or(Err("Failed to create connection"))?;
let adapter = connection