constellation: allow event tracing to be configured with RUST_LOG (#31659)

This commit is contained in:
Delan Azabani 2024-03-14 20:28:36 +08:00 committed by GitHub
parent b30b79a93a
commit ed99128132
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 267 additions and 7 deletions

View file

@ -1334,7 +1334,7 @@ where
}
fn handle_request_from_compositor(&mut self, message: FromCompositorMsg) {
trace!("Got compositor message: {:?}", message);
trace_msg_from_compositor!(message, "{message:?}");
match message {
FromCompositorMsg::Exit => {
self.handle_exit();
@ -1552,11 +1552,7 @@ where
fn handle_request_from_script(&mut self, message: (PipelineId, FromScriptMsg)) {
let (source_pipeline_id, content) = message;
trace!(
"{}: Message from pipeline: {:?}",
source_pipeline_id,
content,
);
trace_script_msg!(content, "{source_pipeline_id}: {content:?}");
let source_top_ctx_id = match self
.pipelines
@ -2098,7 +2094,7 @@ where
}
fn handle_request_from_layout(&mut self, message: FromLayoutMsg) {
debug!("Got layout message: {:?}", message);
trace_layout_msg!(message, "{message:?}");
match message {
// Layout sends new sizes for all subframes. This needs to be reflected by all
// frame trees in the navigation context containing the subframe.