-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple logformat directives in squid.conf #167
Conversation
templates/squid.conf.header.erb
Outdated
<% if @logformat -%> | ||
<% if @logformat.is_a?(Array) %> | ||
<% @logformat.each do |logformat_line| -%> | ||
logformat <%= logformat_line %> | ||
<% end -%> | ||
<% else -%> | ||
logformat <%= @logformat %> | ||
<% end -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's worth avoiding the duplication, something like:
<% if @logformat -%>
<%- [@logformat].flatten.each do |logformat| -%>
logformat <%= logformat %>
<%- end -%>
<% end -%>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never saw that format before, sgtm, pushed up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CentOS 8 failure is unrelated (#162), LGTM!
The error:
is from squid however. It seems squid as version 4.5. just fails if IPv6 is not available. squid-4.15-3 on 8 was built on the 15th feb so is new. Trying to reproduce outside. |
After #170 |
Pull Request (PR) description
Similar to #151, this allows the
logformat
parameter to be a String (same as today) or an Array[String], to provide multiplelogformat
directives to squid.This Pull Request (PR) fixes the following issues
n/a