add tracing to server function registration

This commit is contained in:
Evan Almloff 2024-02-16 14:19:36 -06:00
parent 194d90e66f
commit 30af559275

View file

@ -195,6 +195,7 @@ where
use http::method::Method;
for (path, method) in server_fn::axum::server_fn_paths() {
tracing::trace!("Registering server function: {} {}", method, path);
let handler = move |req| handle_server_fns_inner(path, ||{}, req);
self = match method {
Method::GET => self.route(path, get(handler)),