Revert "disable tracing macros"
This reverts commit 14e0d286f1efcc989ce679e451159fede6330bdf.
This commit is contained in:
@@ -11,7 +11,7 @@ pub struct Root;
|
||||
use crate::TopLevelPage;
|
||||
|
||||
impl Root {
|
||||
//#[tracing::instrument]
|
||||
#[tracing::instrument]
|
||||
pub fn build(context: &Context, body: &Markup, active_page: Option<&TopLevelPage>) -> Markup {
|
||||
let menu_item = |item: TopLevelPage, active_page: Option<&TopLevelPage>| {
|
||||
let active = active_page.map_or(false, |page| *page == item);
|
||||
@@ -117,7 +117,7 @@ impl Root {
|
||||
pub struct ErrorPage;
|
||||
|
||||
impl ErrorPage {
|
||||
//#[tracing::instrument]
|
||||
#[tracing::instrument]
|
||||
pub fn build(message: &str) -> Markup {
|
||||
html!(
|
||||
(DOCTYPE)
|
||||
|
||||
Reference in New Issue
Block a user