Skip to content

Commit

Permalink
log debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dmou committed Sep 20, 2024
1 parent 4a761db commit 562a421
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

config.lograge.enabled = true

config.logger = ActiveSupport::Logger.new(STDOUT)
config.lograge.logger = ActiveSupport::Logger.new(STDOUT)
config.lograge.custom_options = lambda do |event|
options = event.payload.slice(:request_id, :user_id)
Expand All @@ -54,7 +55,7 @@
options
end
config.lograge.formatter = Lograge::Formatters::Json.new
config.log_level = :warn
config.log_level = :debug
config.paths['log'] = "/var/log/#{ENV['DEPLOY_ENV']}.log"
config.paths['tmp'] = "/tmp"
config.paths['db'] = "/opt/db"
Expand Down

0 comments on commit 562a421

Please sign in to comment.