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

parent b0792475
......@@ -17,7 +17,7 @@ http {
server_tokens off;
<% if logging.fetch('access') %>
<% if logging['access'] %>
access_log logs/access.log;
<% else %>
access_log off;
......@@ -27,7 +27,7 @@ http {
error_log stderr debug;
rewrite_log on;
<% else %>
error_log stderr <%= logging.fetch('error') %>;
error_log stderr <%= logging['error'] %>;
<% end %>
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