request logging
This commit is contained in:
parent
61d7680af8
commit
1254018305
@ -23,10 +23,11 @@ fn main() -> Result<(), MainError> {
|
|||||||
http_path_set(http_path);
|
http_path_set(http_path);
|
||||||
|
|
||||||
let file = OpenOptions::new().read(true).open(filename)?;
|
let file = OpenOptions::new().read(true).open(filename)?;
|
||||||
// let image = unsafe { MmapOptions::new().len(493921239040usize).map(&file)? };
|
|
||||||
let image = unsafe { MmapOptions::new().map(&file)? };
|
let image = unsafe { MmapOptions::new().map(&file)? };
|
||||||
|
|
||||||
rouille::start_server(sockaddr, move |request| {
|
rouille::start_server(sockaddr, move |request| {
|
||||||
|
println!("Request: {}", request.url());
|
||||||
|
|
||||||
router!(
|
router!(
|
||||||
request,
|
request,
|
||||||
(GET) ["/"] =>
|
(GET) ["/"] =>
|
||||||
|
Loading…
Reference in New Issue
Block a user