Skip to content

Commit

Permalink
fix: resolve PATH as alias for :request_path
Browse files Browse the repository at this point in the history
as well as restores `path` to required keys list
  • Loading branch information
jonrandahl committed Oct 25, 2024
1 parent bc8f2b2 commit a9968fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/json_rails_logger/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module JsonRailsLogger
EXCEPTION = :exception
MESSAGE = :message
METHOD = :method
PATH = :request_path # Alias for REQUEST_PATH
QUERY_STRING = :query_string
REQUEST_ID = :request_id
REQUEST_PARAMS = :request_params
Expand Down
1 change: 1 addition & 0 deletions lib/json_rails_logger/json_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class JsonFormatter < ::Logger::Formatter # rubocop:disable Metrics/ClassLength
keep_alive
message
method
path
query_string
remote_addr
request_id
Expand Down

0 comments on commit a9968fc

Please sign in to comment.