request logging

This commit is contained in:
Florian Stecker 2024-05-22 18:04:55 -04:00
parent 61d7680af8
commit 1254018305

View File

@ -23,10 +23,11 @@ fn main() -> Result<(), MainError> {
http_path_set(http_path);
let file = OpenOptions::new().read(true).open(filename)?;
// let image = unsafe { MmapOptions::new().len(493921239040usize).map(&file)? };
let image = unsafe { MmapOptions::new().map(&file)? };
rouille::start_server(sockaddr, move |request| {
println!("Request: {}", request.url());
router!(
request,
(GET) ["/"] =>