Skip to content

Commit

Permalink
Change logger to Syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
lagoan committed Aug 25, 2020
1 parent 30c5884 commit 675a49a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
# config.log_tags = [ Rails.root.to_s.split('/').last ]

# Use syslog for logging
config.logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new('log/dmp_assistant'))
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new('dmp_assistant'))

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
Expand Down
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
# config.log_tags = [ Rails.root.to_s.split('/').last ]

# Use syslog for logging
config.logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new('log/dmp_assistant'))
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new('dmp_assistant'))

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

0 comments on commit 675a49a

Please sign in to comment.