suppress incessant favicon.ico messages in project server log

pull/84/head
Matthew Butterick 9 years ago
parent f3eee7b24a
commit c62bdbbe72

@ -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

Loading…
Cancel
Save