Skip to content

Commit

Permalink
Add rail log through ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhoubk committed Mar 12, 2024
1 parent 9c4361f commit 4d2f062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

# Include generic and useful information about system operation, but avoid logging too much
# information to avoid inadvertent exposure of personally identifiable information (PII).
config.log_level = :error
config.log_level = ENV.fetch('LOG_LEVEL', 'INFO').downcase.to_sym

# Prepend all log lines with the following tags.
config.log_tags = [:request_id]
Expand Down

0 comments on commit 4d2f062

Please sign in to comment.