Skip to content

Commit

Permalink
add log level env
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Dec 13, 2023
1 parent bd65ab9 commit a92b236
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bulletin_board/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The Bulletin Board is a service composed by an Encryption Engine and an Append-Only Log. External queries to the Encryption Engine are allowed through an API.

- Ruby version: 2.6
- Ruby version: 3.1
- Rails version: 6
- Python version: 3.8.2

Expand Down
2 changes: 1 addition & 1 deletion bulletin_board/server/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
config.log_level = :info
config.log_level = %w(debug info warn error fatal).include?(ENV['RAILS_LOG_LEVEL']) ? ENV['RAILS_LOG_LEVEL'] : :info

# Prepend all log lines with the following tags.
config.log_tags = [:request_id]
Expand Down
3 changes: 3 additions & 0 deletions docs/modules/configure/pages/environment_variables.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ We try to let most of the things defined through Environment Variables, as https
|SECRET_KEY_BASE
|Secret key base for the Application. It's specially important that this is kept secret from the outside word; do NOT publish it on GitHub/GitLab/BitBucket.

|RAILS_LOG_LEVEL
|Log level for the application. Defaults to `info` (possible values are `debug`, `info`, `warn`, `error` and `fatal`).

|IAT_EXPIRATION_MINUTES
|Expiration time for the JWT tokens, in minutes. Defaults to 60 minutes.

Expand Down

0 comments on commit a92b236

Please sign in to comment.