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

Fix broken CI #384

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs:
gemfile: gemfiles/rails_edge.gemfile
- ruby: jruby-9.2
gemfile: gemfiles/rails_7.0.gemfile
# NOTE: Rails edge requires Ruby version >= 3.1
- ruby: "2.7"
gemfile: gemfiles/rails_edge.gemfile
- ruby: "3.0"
gemfile: gemfiles/rails_edge.gemfile


env:
Expand Down
2 changes: 1 addition & 1 deletion lib/lograge/formatters/graylog2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def call(data)
end

def underscore_prefix(key)
"_#{key}".to_sym
:"_#{key}"
end

def short_message(data)
Expand Down
2 changes: 1 addition & 1 deletion lib/lograge/formatters/key_value_deep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Lograge
module Formatters
class KeyValueDeep < KeyValue
def call(data)
super flatten_keys(data)
super(flatten_keys(data))
end

protected
Expand Down
2 changes: 1 addition & 1 deletion lib/lograge/log_subscribers/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_error_status_code(exception_class_name)
end

def extract_allocations(event)
if (allocations = (event.respond_to?(:allocations) && event.allocations))
if (allocations = event.respond_to?(:allocations) && event.allocations)
{ allocations: allocations }
else
{}
Expand Down