Skip to content
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

Merged
merged 1 commit into from
Mar 6, 2018
Merged

enable buffered logs #82

merged 1 commit into from
Mar 6, 2018

Conversation

SourceDoctor
Copy link
Contributor

Option to enable buffering logs before writing to disc

Copy link
Member

@alexjfisher alexjfisher left a 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?

@@ -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' %>
Copy link
Member

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.

@@ -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' %>
Copy link
Member

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?

Copy link
Member

@alexjfisher alexjfisher left a 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.

@@ -13,6 +13,9 @@ maximum_object_size_in_memory <%= @maximum_object_size_in_memory %>
<% if @logformat -%>
logformat <%= @logformat %>
<% end -%>
<% unless @memory_cache_shared.nil? -%>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

memory_cache_shared??

@SourceDoctor
Copy link
Contributor Author

@alexjfisher
everything done, something else to handle or ready to merge?

alexjfisher
alexjfisher previously approved these changes Feb 17, 2018
@alexjfisher alexjfisher dismissed their stale review February 17, 2018 18:15

Needs rebase

@alexjfisher
Copy link
Member

@SourceDoctor Looks good. Could you rebase please?

@traylenator traylenator merged commit 87383a3 into voxpupuli:master Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants