Add the (currently android) easter mode

This commit is contained in:
Ethan O'Brien
2025-11-30 17:26:26 -06:00
parent 60eb7d469b
commit ad0d222c96
8 changed files with 110 additions and 102 deletions

View File

@@ -39,7 +39,12 @@ pub async fn run_server(in_thread: bool) -> std::io::Result<()> {
let rv = HttpServer::new(|| App::new()
.wrap_fn(|req, srv| {
println!("Request: {}", req.path());
println!("Request: {} {}", req.method(), req.path());
#[cfg(feature = "library")]
#[cfg(target_os = "android")]
log_to_logcat!("ew", "Request: {} {}", req.method(), req.path());
srv.call(req)
})
.app_data(web::PayloadConfig::default().limit(1024 * 1024 * 25))