use [] instead of fetch, so it doesn't raise an execption

parent b0792475
...@@ -17,7 +17,7 @@ http { ...@@ -17,7 +17,7 @@ http {
server_tokens off; server_tokens off;
<% if logging.fetch('access') %> <% if logging['access'] %>
access_log logs/access.log; access_log logs/access.log;
<% else %> <% else %>
access_log off; access_log off;
...@@ -27,7 +27,7 @@ http { ...@@ -27,7 +27,7 @@ http {
error_log stderr debug; error_log stderr debug;
rewrite_log on; rewrite_log on;
<% else %> <% else %>
error_log stderr <%= logging.fetch('error') %>; error_log stderr <%= logging['error'] %>;
<% end %> <% end %>
include mime.types; include mime.types;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment