utils
: Reduce logging
This commit is contained in:
parent
e2687011eb
commit
5b62ff6ff7
1 changed files with 4 additions and 4 deletions
|
@ -7,10 +7,10 @@ pub mod run;
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! add_minijinja_template {
|
macro_rules! add_minijinja_template {
|
||||||
($mj:ident, $path:literal) => {
|
($mj:ident, $path:literal) => {
|
||||||
log::trace!("Adding template to minijinja Environment: {:?} ← {:#?}", $mj, $path);
|
log::trace!("Adding template to minijinja Environment: {:#?}", $path);
|
||||||
$mj.add_template($path, include_str!($path))
|
$mj.add_template($path, include_str!($path))
|
||||||
.expect(concat!("Invalid Minijinja template: ", $path));
|
.expect(concat!("Invalid Minijinja template: ", $path));
|
||||||
log::trace!("Added template to minijinja Environment: {:?} ← {:#?}", $mj, $path);
|
log::trace!("Added template to minijinja Environment: {:#?}", $path);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ macro_rules! add_minijinja_template {
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! add_axum_route {
|
macro_rules! add_axum_route {
|
||||||
($router:ident, $path:literal, $route:expr) => {
|
($router:ident, $path:literal, $route:expr) => {
|
||||||
log::trace!("Adding route to axum Router: {:?} ← {:#?}", $router, $path);
|
log::trace!("Adding route to axum Router: {:#?}", $path);
|
||||||
let $router = $router.route($path, $route);
|
let $router = $router.route($path, $route);
|
||||||
log::trace!("Added route to axum Router: {:?} ← {:#?}", $router, $path);
|
log::trace!("Added route to axum Router: {:#?}", $path);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue