Skip to content

Conversation

@kpumuk
Copy link

@kpumuk kpumuk commented Dec 22, 2025

Currently, production environment logs spit out debug logs, and there is no way to configure it without rebuilding the docker container. This poses both performance and security implications.

By default, Rails generates production environment config with RAILS_LOG_LEVEL environment variable, but a sequence of changes for the SaaS version led to removal of this:

  • 482aa90 switches log level to unconfigurable fatal, to enable structured logging
  • fa9ee03 moves structured logging out of self-hosted version to SaaS
  • 28250b3 moves fatal (and the last mention of log_level) from production to SaaS production, switching self-hosted version to debug

This pull request restores "info" by default, and add configurability. SaaS version overrides it with "fatal", so no changes needed there: https://github.com/basecamp/fizzy/blob/main/saas/config/environments/production.rb#L4-L6

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.

1 participant