utils: Reduce logging

This commit is contained in:
Steffo 2024-12-18 16:24:44 +01:00
parent e2687011eb
commit 5b62ff6ff7
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -7,10 +7,10 @@ pub mod run;
#[macro_export]
macro_rules! add_minijinja_template {
($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))
.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_rules! add_axum_route {
($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);
log::trace!("Added route to axum Router: {:?} ← {:#?}", $router, $path);
log::trace!("Added route to axum Router: {:#?}", $path);
};
}