Merge pull request #968 from Demonthos/swich-debug-to-trace-router
Switch debug logs to trace in the router and web crates
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -45,13 +45,13 @@ pub fn Route<'a>(cx: Scope<'a, RouteProps<'a>>) -> Element {
|
|||||||
router_root.register_total_route(route_context.total_route, cx.scope_id());
|
router_root.register_total_route(route_context.total_route, cx.scope_id());
|
||||||
});
|
});
|
||||||
|
|
||||||
log::debug!("Checking Route: {:?}", cx.props.to);
|
log::trace!("Checking Route: {:?}", cx.props.to);
|
||||||
|
|
||||||
if router_root.should_render(cx.scope_id()) {
|
if router_root.should_render(cx.scope_id()) {
|
||||||
log::debug!("Route should render: {:?}", cx.scope_id());
|
log::trace!("Route should render: {:?}", cx.scope_id());
|
||||||
cx.render(rsx!(&cx.props.children))
|
cx.render(rsx!(&cx.props.children))
|
||||||
} else {
|
} else {
|
||||||
log::debug!("Route should *not* render: {:?}", cx.scope_id());
|
log::trace!("Route should *not* render: {:?}", cx.scope_id());
|
||||||
cx.render(rsx!(()))
|
cx.render(rsx!(()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -225,7 +225,7 @@ pub async fn run_with_props<T: 'static>(root: fn(Scope<T>) -> Element, root_prop
|
|||||||
websys_dom.mount();
|
websys_dom.mount();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
log::debug!("waiting for work");
|
log::trace!("waiting for work");
|
||||||
|
|
||||||
// if virtualdom has nothing, wait for it to have something before requesting idle time
|
// if virtualdom has nothing, wait for it to have something before requesting idle time
|
||||||
// if there is work then this future resolves immediately.
|
// if there is work then this future resolves immediately.
|
||||||
|
|||||||
Reference in new issue
Block a user