Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
remove over complicated logger setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dazoakley committed May 9, 2014
1 parent 47d3025 commit c5110b2
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions config/unicorn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,11 @@
require 'macmillan/utils/logger/formatter'

syslog_logger = Macmillan::Utils::Logger::Factory.build_logger(:syslog, tag: 'bandiera')
syslog_logger.formatter = Macmillan::Utils::Logger::Formatter.new('[UNICORN:M]')
syslog_logger.formatter = Macmillan::Utils::Logger::Formatter.new
syslog_logger.level = Logger::INFO
logger(syslog_logger)
end

after_fork do |server, worker|
if ENV['USE_SYSLOG']
syslog_logger = Macmillan::Utils::Logger::Factory.build_logger(:syslog, tag: 'bandiera')
syslog_logger.formatter = Macmillan::Utils::Logger::Formatter.new("[UNICORN:#{worker.nr}]")
syslog_logger.level = Logger::INFO
logger(syslog_logger)
end
end

if ENV['WORKING_DIR']
working_directory ENV['WORKING_DIR']
end
Expand Down

0 comments on commit c5110b2

Please sign in to comment.