cbaines pushed a commit to branch master
in repository maintenance.

commit 7c6ffc9dfaaef23115b595c3d21e9a9790e9586e
Author: Christopher Baines <m...@cbaines.net>
AuthorDate: Mon May 13 16:11:09 2024 +0100

    hydra: bayfront: Don't log 404's as NGinx errors.
    
    As this clutters the error log.  There will still be information in
    the access logs.
    
    * hydra/bayfront.scm (%bayfront-nginx-service-extra-config): Add
    log_not_found off.
---
 hydra/bayfront.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index b692f85..94ce73c 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -331,6 +331,9 @@ of Tennessee")))))
 (define %bayfront-nginx-service-extra-config
   (list (accept-languages)
         "
+# Don't clutter the error log with 404's
+log_not_found off;
+
 sendfile        on;
 
 # Maximum chunk size to send.  Partly this is a workaround

Reply via email to