Initial commit

This commit is contained in:
Yaser
2026-08-13 19:50:53 +03:30
commit 38084458fe
879 changed files with 95198 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# encoding: UTF-8
# frozen_string_literal: true
Rails.application.configure do
# Available levels (verbosity goes from high to less): debug, info, warn, error, fatal.
# Default level for production is warn, otherwise debug.
log_level = ENV['LOG_LEVEL'].presence || (Rails.env.production? ? :info : :debug)
config.log_formatter = Logger::Formatter.new
# In non-test environments logging always goes to STDOUT since this is the most appropriate way
# to get logs in Docker environment.
unless Rails.env.test?
config.logger = ActiveSupport::Logger.new STDERR, level: log_level
config.logger.formatter = config.log_formatter
end
# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
# The configuration variables below will be used in case config.logger hasn't been set yet.
# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
config.log_level = log_level
end