mirror of
https://github.com/internetee/registry.git
synced 2025-05-30 01:20:04 +02:00
Updated syslog #2292
This commit is contained in:
parent
af6f3bc87e
commit
746fabadfd
6 changed files with 9 additions and 9 deletions
2
Gemfile
2
Gemfile
|
@ -11,7 +11,7 @@ source 'https://rubygems.org'
|
||||||
gem 'rails', '4.2.3' # when update, all initializers eis_custom files needs check/update
|
gem 'rails', '4.2.3' # when update, all initializers eis_custom files needs check/update
|
||||||
gem 'iso8601', '~> 0.8.6' # for dates and times
|
gem 'iso8601', '~> 0.8.6' # for dates and times
|
||||||
gem 'hashie-forbidden_attributes', '~> 0.1.1'
|
gem 'hashie-forbidden_attributes', '~> 0.1.1'
|
||||||
gem 'SyslogLogger', '~> 2.0.0'
|
gem 'SyslogLogger', '~> 2.0', require: 'syslog/logger'
|
||||||
|
|
||||||
# load env
|
# load env
|
||||||
gem 'figaro', '~> 1.1.1'
|
gem 'figaro', '~> 1.1.1'
|
||||||
|
|
|
@ -540,7 +540,7 @@ PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
SyslogLogger (~> 2.0.0)
|
SyslogLogger (~> 2.0)
|
||||||
activerecord-import (~> 0.7.0)
|
activerecord-import (~> 0.7.0)
|
||||||
autodoc
|
autodoc
|
||||||
better_errors (~> 2.1.1)
|
better_errors (~> 2.1.1)
|
||||||
|
|
|
@ -48,11 +48,8 @@ Rails.application.configure do
|
||||||
# Prepend all log lines with the following tags.
|
# Prepend all log lines with the following tags.
|
||||||
config.log_tags = [:subdomain, :uuid, :remote_ip]
|
config.log_tags = [:subdomain, :uuid, :remote_ip]
|
||||||
|
|
||||||
# Use a different logger for distributed setups.
|
# config.log_tags = [:subdomain, :uuid, :remote_ip]
|
||||||
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new(ENV['app_name']))
|
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
|
||||||
|
|
||||||
# Use a different logger for distributed setups.
|
|
||||||
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
|
||||||
|
|
||||||
# Use a different cache store in production.
|
# Use a different cache store in production.
|
||||||
# config.cache_store = :mem_cache_store
|
# config.cache_store = :mem_cache_store
|
||||||
|
|
|
@ -35,6 +35,9 @@ Rails.application.configure do
|
||||||
# Raises error for missing translations
|
# Raises error for missing translations
|
||||||
# config.action_view.raise_on_missing_translations = true
|
# config.action_view.raise_on_missing_translations = true
|
||||||
|
|
||||||
|
# config.log_tags = [:subdomain, :uuid, :remote_ip]
|
||||||
|
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
|
||||||
|
|
||||||
config.action_mailer.default_url_options = { host: 'localhost:8081' }
|
config.action_mailer.default_url_options = { host: 'localhost:8081' }
|
||||||
|
|
||||||
# for finding database optimization
|
# for finding database optimization
|
||||||
|
|
|
@ -49,7 +49,7 @@ Rails.application.configure do
|
||||||
config.log_tags = [:subdomain, :uuid, :remote_ip]
|
config.log_tags = [:subdomain, :uuid, :remote_ip]
|
||||||
|
|
||||||
# Use a different logger for distributed setups.
|
# Use a different logger for distributed setups.
|
||||||
config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new(ENV['app_name']))
|
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
|
||||||
|
|
||||||
# Use a different cache store in production.
|
# Use a different cache store in production.
|
||||||
# config.cache_store = :mem_cache_store
|
# config.cache_store = :mem_cache_store
|
||||||
|
|
|
@ -49,7 +49,7 @@ Rails.application.configure do
|
||||||
config.log_tags = [:subdomain, :uuid, :remote_ip]
|
config.log_tags = [:subdomain, :uuid, :remote_ip]
|
||||||
|
|
||||||
# Use a different logger for distributed setups.
|
# Use a different logger for distributed setups.
|
||||||
config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new(ENV['app_name']))
|
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
|
||||||
|
|
||||||
# Use a different cache store in production.
|
# Use a different cache store in production.
|
||||||
# config.cache_store = :mem_cache_store
|
# config.cache_store = :mem_cache_store
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue