disable tracing macros

This commit is contained in:
2023-08-29 21:34:01 +02:00
parent 25a92d858b
commit 6ffab1de14
14 changed files with 162 additions and 162 deletions

View File

@@ -23,7 +23,7 @@ mod html;
mod routes;
use routes::*;
#[tracing::instrument]
//#[tracing::instrument]
fn get_referer(headers: &HeaderMap) -> Result<&str, Error> {
headers
.get("referer")
@@ -36,7 +36,7 @@ fn get_referer(headers: &HeaderMap) -> Result<&str, Error> {
})
}
#[tracing::instrument]
//#[tracing::instrument]
async fn simple_handler(State(state): State<AppState>) -> &'static str {
use tracing::Instrument;
let pool = async {
@@ -71,7 +71,7 @@ async fn simple_handler(State(state): State<AppState>) -> &'static str {
"ok"
}
#[tracing::instrument]
//#[tracing::instrument]
pub fn router(state: AppState) -> Router {
Router::new()
.route("/favicon.svg", get(icon))