File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ server {
48
48
<% end -%>
49
49
<% if @error_log.is_a?(Array) -%>
50
50
<%- @error_log.each do |log_item| -%>
51
- error_log <%= log_item %> ;
51
+ error_log <%= log_item %> <% if @error_log_severity %> <%= @error_log_severity %> <% end %> ;
52
52
<%- end -%>
53
53
<% elsif @error_log == 'absent' -%>
54
54
<% elsif not @error_log -%>
55
- error_log <%= scope['::nginx::config::log_dir'] %> /<%= @name_sanitized %> .error.log;
55
+ error_log <%= scope['::nginx::config::log_dir'] %> /<%= @name_sanitized %> .error.log<% if @error_log_severity %> <%= @error_log_severity %> <% end %> ;
56
56
<% else -%>
57
- error_log <%= @error_log %> ;
57
+ error_log <%= @error_log %> <% if @error_log_severity %> <%= @error_log_severity %> <% end %> ;
58
58
<% end -%>
59
59
}
60
60
Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ server {
31
31
<% end -%>
32
32
<% if @error_log.is_a?(Array) -%>
33
33
<%- @error_log.each do |log_item| -%>
34
- error_log <%= log_item %> ;
34
+ error_log <%= log_item %> <% if @error_log_severity %> <%= @error_log_severity %> <% end %> ;
35
35
<%- end -%>
36
36
<% elsif @error_log == 'absent' -%>
37
37
<% elsif not @error_log -%>
38
- error_log <%= scope['::nginx::config::log_dir'] %> /ssl-<%= @name_sanitized %> .error.log;
38
+ error_log <%= scope['::nginx::config::log_dir'] %> /ssl-<%= @name_sanitized %> .error.log<% if @error_log_severity %> <%= @error_log_severity %> <% end %> ;
39
39
<% else -%>
40
- error_log <%= @error_log %> ;
40
+ error_log <%= @error_log %> <% if @error_log_severity %> <%= @error_log_severity %> <% end %> ;
41
41
<% end -%>
42
42
<%= scope.function_template(["nginx/server/server_ssl_settings.erb"]) %>
43
43
You can’t perform that action at this time.
0 commit comments