Open araslanov-e opened 1 year ago
When config.rails_semantic_logger.semantic = false
2023-08-29 11:41:38.342510 I [71939:puma srv tp 003] Rails -- Started POST "/pages" for ::1 at 2023-08-29 11:41:38 +0300
2023-08-29 11:41:38.348703 I [71939:puma srv tp 003] Rails -- Processing by PagesController#create as TURBO_STREAM
2023-08-29 11:41:38.348746 I [71939:puma srv tp 003] Rails -- Parameters: {"authenticity_token"=>"[FILTERED]", "page"=>{"title"=>"000", "desc"=>"[FILTERED]"}, "commit"=>"Create Page"}
2023-08-29 11:41:38.351155 D [71939:puma srv tp 003] ActiveRecord::Base -- TRANSACTION (0.1ms) begin transaction
2023-08-29 11:41:38.351668 D [71939:puma srv tp 003] ActiveRecord::Base -- ↳ app/controllers/pages_controller.rb:27:in `block in create'
2023-08-29 11:41:38.352524 D [71939:puma srv tp 003] ActiveRecord::Base -- Page Create (0.4ms) INSERT INTO "pages" ("title", "desc", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "000"], ["desc", "[FILTERED]"], ["created_at", "2023-08-29 08:41:38.350462"], ["updated_at", "2023-08-29 08:41:38.350462"]]
2023-08-29 11:41:38.352905 D [71939:puma srv tp 003] ActiveRecord::Base -- ↳ app/controllers/pages_controller.rb:27:in `block in create'
2023-08-29 11:41:38.353809 D [71939:puma srv tp 003] ActiveRecord::Base -- TRANSACTION (0.7ms) commit transaction
2023-08-29 11:41:38.354123 D [71939:puma srv tp 003] ActiveRecord::Base -- ↳ app/controllers/pages_controller.rb:27:in `block in create'
2023-08-29 11:41:38.354612 I [71939:puma srv tp 003] Rails -- Redirected to http://localhost:3000/pages/6
2023-08-29 11:41:38.354650 I [71939:puma srv tp 003] Rails -- Completed 302 Found in 6ms (ActiveRecord: 1.2ms | Allocations: 3967)
["desc", "[FILTERED]"]
Environment
Ruby: 3.1.4 Rails: 7.0.7.2 rails_semantic_logger (4.12.0) semantic_logger (4.14.0)
Created a new application, added a
Page
model withtitle
anddesc
fields, added thedesc
field toRails.application.config.filter_parameters
.Expected Behavior
The log without the gem:
Actual Behavior
The log with the gem:
Summary
Field
desc
has not filtered