Skip to content

Commit

Permalink
added logging state to the application.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Mar 4, 2024
1 parent d5f2283 commit 6eddc76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ smtp_enable_starttls_auto: 'true' # 'false'
# If your mail server requires authentication, please change.
smtp_authentication: 'plain' # 'plain', 'login', 'cram_md5'

log_level: 'warn' # 'debug', 'info', 'warn', 'error', 'fatal', 'unknown

#
# ADMIN server
#
Expand Down
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
config.logger = ActiveSupport::TaggedLogging.new(logger)
end


config.log_level = ENV['log_level'] || :debug

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
end

0 comments on commit 6eddc76

Please sign in to comment.