From 9bb9d6dc827583fdd6cf0cea48c72c781a3c06dc Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sat, 1 Jun 2024 16:33:35 +0200 Subject: [PATCH] remove debug logging --- backend/cmd/httpd/main.ha | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/cmd/httpd/main.ha b/backend/cmd/httpd/main.ha index 68c879f..32b78ba 100644 --- a/backend/cmd/httpd/main.ha +++ b/backend/cmd/httpd/main.ha @@ -116,7 +116,6 @@ export fn handle_file(buf: *memio::stream, serv_req: *http::server_request) void let ext = path::peek_ext(&p); if (ext is void) { - fmt::printfln("can't find ext. bye.")!; handle_notfound(buf, serv_req); return; }; @@ -126,13 +125,11 @@ export fn handle_file(buf: *memio::stream, serv_req: *http::server_request) void case "css" => yield "text/css"; case "js" => yield "application/javascript; charset=utf-8"; case => - fmt::printfln("unknown ext: {}", ext)!; handle_notfound(buf, serv_req); return; }; let filename = path::basename(request.target.path); - fmt::printfln("filename: {}", filename)!; let fp = os::open(filename)!; defer io::close(fp)!; let filecontent = io::drain(fp)!;