Skip to content

Commit 5c04e53

Browse files
committed
Auto merge of #2098 - jtgeibel:drop-nginx-access-logs, r=carols10cents
Disable nginx access logs on Heroku This PR disables nginx access logs. This should allow us to drop the `measure#nginx.service` filter in Papertrail. I've tested this in my staging area and the nginx entries are no longer produced.
2 parents 66c45e0 + 576b9c4 commit 5c04e53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/nginx.conf.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ http {
9292

9393
server_tokens off;
9494

95-
log_format l2met 'measure#nginx.service=$request_time request_id=$http_x_request_id';
96-
access_log logs/nginx/access.log l2met;
95+
# Disable access logs, keep error logs on Heroku
96+
access_log /dev/null;
9797
error_log logs/nginx/error.log;
9898

9999
include mime.types;

0 commit comments

Comments
 (0)