-
-
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
enable buffered logs #82
Conversation
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.
Could you add tests and docs for this parameter?
templates/squid.conf.header.erb
Outdated
@@ -13,6 +13,7 @@ maximum_object_size_in_memory <%= @maximum_object_size_in_memory %> | |||
<% if @logformat -%> | |||
logformat <%= @logformat %> | |||
<% end -%> | |||
buffered_logs <%= (@buffered_logs == 'on' || @buffered_logs == true)?'on':'off' %> |
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.
Probably best to wrap this in
unless @buffered_logs.nil?
and default the parameter to undef.
templates/squid.conf.header.erb
Outdated
@@ -13,7 +13,9 @@ maximum_object_size_in_memory <%= @maximum_object_size_in_memory %> | |||
<% if @logformat -%> | |||
logformat <%= @logformat %> | |||
<% end -%> | |||
buffered_logs <%= (@buffered_logs == 'on' || @buffered_logs == true)?'on':'off' %> | |||
<% unless @memory_cache_shared.nil? -%> | |||
buffered_logs <%= (@buffered_logs == true)?'on':'off' %> |
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.
I guess the == true
isn't needed?
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.
Typo in template needs fixing. It might also be worth adding a test for the default.
templates/squid.conf.header.erb
Outdated
@@ -13,6 +13,9 @@ maximum_object_size_in_memory <%= @maximum_object_size_in_memory %> | |||
<% if @logformat -%> | |||
logformat <%= @logformat %> | |||
<% end -%> | |||
<% unless @memory_cache_shared.nil? -%> |
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.
memory_cache_shared
??
@alexjfisher |
@SourceDoctor Looks good. Could you rebase please? |
Option to enable buffering logs before writing to disc