lib/capper/templates/unicorn.rb.erb in capper-1.1.0 vs lib/capper/templates/unicorn.rb.erb in capper-1.2.0
- old
+ new
@@ -24,10 +24,10 @@
# use syslogger if available
begin
require "syslogger"
logger Syslogger.new("<%= application %>-unicorn", Syslog::LOG_PID, Syslog::LOG_LOCAL1)
-rescue
+rescue LoadError
end
# these do not seem to support syslog
stderr_path "<%= log_path %>/unicorn.stderr.log"
stdout_path "<%= log_path %>/unicorn.stdout.log"