From c62bdbbe7233c5190628731725ba9169bc2cb067 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Fri, 31 Jul 2015 20:10:29 -0700 Subject: [PATCH] suppress incessant favicon.ico messages in project server log --- server-routes.rkt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server-routes.rkt b/server-routes.rkt index 59a5237..b0bd7d5 100644 --- a/server-routes.rkt +++ b/server-routes.rkt @@ -41,8 +41,9 @@ (define client (request-client-ip req)) (define localhost-client "::1") (define url-string (url->string (request-uri req))) - (message "request:" (string-replace url-string (world:current-default-pagetree) " dashboard") - (if (not (equal? client localhost-client)) (format "from ~a" client) ""))) + (when (not (ends-with? url-string "favicon.ico")) + (message "request:" (string-replace url-string (world:current-default-pagetree) " dashboard") + (if (not (equal? client localhost-client)) (format "from ~a" client) "")))) ;; pass string args to route, then ;; package route into right format for web server