Skip to content

Comments

Fix HttpLog never being loaded in production environment regardless of log level#35825

Closed
ClearlyClaire wants to merge 1 commit intomainfrom
fixes/httplog-debug
Closed

Fix HttpLog never being loaded in production environment regardless of log level#35825
ClearlyClaire wants to merge 1 commit intomainfrom
fixes/httplog-debug

Conversation

@ClearlyClaire
Copy link
Contributor

@ClearlyClaire ClearlyClaire commented Aug 19, 2025

The initializer is testing for a symbol, but config/environments/production.rb set it from environment as a string.

@ClearlyClaire ClearlyClaire changed the title Fix HttpLog not being loaded on debug Rails log level Fix HttpLog never being loaded in production environment regardless of log level Aug 19, 2025
@ClearlyClaire ClearlyClaire added the to backport PR needed to be backported label Aug 19, 2025
@ClearlyClaire ClearlyClaire marked this pull request as ready for review August 19, 2025 16:32

# Change to "debug" to log everything (including potentially personally-identifiable information!)
config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'info')
config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'info')&.to_sym
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably fine and will fix the comparison, but two thoughts:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be a better alternative indeed!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to open such a PR to replace this one?

@ClearlyClaire ClearlyClaire marked this pull request as draft August 20, 2025 07:37
@ClearlyClaire ClearlyClaire removed the to backport PR needed to be backported label Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants