From bde9588c601ed55e29d4865a383a3315d4d24a1f Mon Sep 17 00:00:00 2001 From: Chris Gannon Date: Thu, 7 Nov 2024 12:12:35 +0000 Subject: [PATCH 1/2] use forked semantic logger --- Gemfile | 2 +- Gemfile.lock | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 69cf93c104..35c1a5455b 100644 --- a/Gemfile +++ b/Gemfile @@ -46,7 +46,7 @@ gem "stackprof" gem "amazing_print", "~> 1.6" # There seems to be an issue with 4.17.0 where the workers log the sql -gem "rails_semantic_logger", "4.17.0" +gem "rails_semantic_logger", github: "kennyevil/rails_semantic_logger", branch: "filter-bind-values" # Thread-safe global state gem "request_store", "~> 1.7" diff --git a/Gemfile.lock b/Gemfile.lock index 8d7729a8ef..7665e95509 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,6 +18,16 @@ GIT activesupport tzinfo +GIT + remote: https://github.com/kennyevil/rails_semantic_logger.git + revision: c09d7158bdcd8884a13d185848c3a519d9d4bf6d + branch: filter-bind-values + specs: + rails_semantic_logger (4.17.0) + rack + railties (>= 5.1) + semantic_logger (~> 4.16) + GEM remote: https://rubygems.org/ specs: @@ -515,10 +525,6 @@ GEM rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - rails_semantic_logger (4.17.0) - rack - railties (>= 5.1) - semantic_logger (~> 4.16) railties (7.2.0) actionpack (= 7.2.0) activesupport (= 7.2.0) @@ -814,7 +820,7 @@ DEPENDENCIES rails (~> 7.2) rails-controller-testing rails-erd - rails_semantic_logger (= 4.17.0) + rails_semantic_logger! request_store (~> 1.7) rotp rspec-benchmark From 2ec8ef2c410b168ef3af0e598efbc4061644af4d Mon Sep 17 00:00:00 2001 From: Chris Gannon Date: Thu, 7 Nov 2024 12:18:26 +0000 Subject: [PATCH 2/2] add audited changes to filtered params --- config/initializers/filter_parameter_logging.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb index 3a72536283..6d5a0ade16 100644 --- a/config/initializers/filter_parameter_logging.rb +++ b/config/initializers/filter_parameter_logging.rb @@ -32,4 +32,5 @@ :region, :town_city, :trn, + :audited_changes, ]