From 576b9c4d7c0de52b4f99f88229e3eb3f1a885dfb Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Sun, 5 Jan 2020 22:40:53 -0500 Subject: [PATCH] Disable nginx access logs on Heroku --- config/nginx.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/nginx.conf.erb b/config/nginx.conf.erb index 9a62e8499f8..fe5b2799c11 100644 --- a/config/nginx.conf.erb +++ b/config/nginx.conf.erb @@ -92,8 +92,8 @@ http { server_tokens off; - log_format l2met 'measure#nginx.service=$request_time request_id=$http_x_request_id'; - access_log logs/nginx/access.log l2met; + # Disable access logs, keep error logs on Heroku + access_log /dev/null; error_log logs/nginx/error.log; include mime.types;