From 3f2535167e3db969a0fee024dbfa43997fa6c9f8 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 27 Feb 2014 16:06:28 +0000 Subject: [PATCH] apache: buffer logs by default --- cookbooks/apache/attributes/default.rb | 2 ++ cookbooks/apache/templates/default/httpd.conf.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cookbooks/apache/attributes/default.rb b/cookbooks/apache/attributes/default.rb index 41779d7d7..469a1a90d 100644 --- a/cookbooks/apache/attributes/default.rb +++ b/cookbooks/apache/attributes/default.rb @@ -29,3 +29,5 @@ default[:apache][:event][:max_requests_per_child] = 0 default[:apache][:listen_address] = "*" default[:apache][:ssl][:certificate] = "openstreetmap" + +default[:apache][:buffered_logs] = true diff --git a/cookbooks/apache/templates/default/httpd.conf.erb b/cookbooks/apache/templates/default/httpd.conf.erb index 0361ffd86..73e59c725 100644 --- a/cookbooks/apache/templates/default/httpd.conf.erb +++ b/cookbooks/apache/templates/default/httpd.conf.erb @@ -48,3 +48,5 @@ MaxRequestsPerChild <%= node[:apache][:event][:max_requests_per_child] %> # Default to UTF-8 AddDefaultCharset utf-8 + +BufferedLogs <%= node[:apache][:buffered_logs] ? "On" : "Off" %> -- 2.43.2