Convert all logs to trace

This commit is contained in:
Joshua Kifer committed 2022-03-27 09:23:44 -06:00
1 parent 14099e9889
commit 213f54c4d8
9 files changed
+19 -20

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ fn BlogList(cx: Scope) -> Element {
fn BlogPost(cx: Scope) -> Element {
let id = use_route(&cx).segment("id")?;
log::debug!("rendering blog post {}", id);
log::trace!("rendering blog post {}", id);
cx.render(rsx! { div { "{id:?}" } })
}
+3 -3
View File
@@ -53,13 +53,13 @@ pub fn Route<'a>(cx: Scope<'a, RouteProps<'a>>) -> Element {
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()) {
log::debug!("Route should render: {:?}", cx.scope_id());
log::trace!("Route should render: {:?}", cx.scope_id());
cx.render(rsx!(&cx.props.children))
} else {
log::debug!("Route should *not* render: {:?}", cx.scope_id());
log::trace!("Route should *not* render: {:?}", cx.scope_id());
None
}
}
+2 -2
View File
@@ -182,7 +182,7 @@ impl RouterCore {
if let Some(route) = roots.get(&scope) {
let cur = &self.current_location().url;
log::debug!("Checking if {} matches {}", cur, route);
log::trace!("Checking if {} matches {}", cur, route);
if route_matches_path(cur, route, self.cfg.base_url.as_ref()) || route.is_empty() {
self.route_found.set(Some(scope));
@@ -236,7 +236,7 @@ fn route_matches_path(cur: &Url, attempt: &str, base_url: Option<&String>) -> bo
let attempt_pieces = clean_path(attempt).split('/').collect::<Vec<_>>();
log::debug!("Comparing {:?} to {:?}", cur_pieces, attempt_pieces);
log::trace!("Comparing {:?} to {:?}", cur_pieces, attempt_pieces);
if attempt_pieces.len() != cur_pieces.len() {
return false;
+1 -1
View File
@@ -21,7 +21,7 @@ fn simple_test() {
static APP: Component = |cx| {
cx.render(rsx! {
Router {
onchange: move |route: RouterService| log::info!("route changed to {:?}", route.current_location()),
onchange: move |route: RouterService| log::trace!("route changed to {:?}", route.current_location()),
active_class: "is-active",
Route { to: "/", Home {} }
Route { to: "blog"
+1 -1
View File
@@ -49,7 +49,7 @@ fn main() {
let _ = dom.rebuild();
let pre = dioxus_ssr::pre_render_vdom(&dom);
log::debug!("{}", pre);
log::trace!("{}", pre);
// set the inner content of main to the pre-rendered content
window()
-1
View File
@@ -244,7 +244,6 @@ fn virtual_event_from_websys_event(
let value: Option<String> = (&element)
.dyn_ref()
.map(|input: &web_sys::HtmlInputElement| {
log::info!("Input type: {}", input.type_());
match input.type_().as_str() {
"checkbox" => {
match input.checked() {