capper 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "capper"
5
- s.version = "0.7.1"
5
+ s.version = "0.7.2"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.licenses = ["MIT"]
8
8
  s.authors = ["Benedikt Böhm"]
@@ -22,11 +22,14 @@ timeout <%= unicorn_timeout %>
22
22
  # know what you are doing.
23
23
  pid "<%= shared_path %>/pids/unicorn.pid"
24
24
 
25
- # By default, the Unicorn logger will write to stderr.
26
- # Additionally, some applications/frameworks log to stderr or stdout,
27
- # so prevent them from going to /dev/null when daemonized here:
28
- stderr_path "<%= shared_path %>/log/unicorn.stderr.log"
29
- stdout_path "<%= shared_path %>/log/unicorn.stdout.log"
25
+ # try using Syslogger and fall back to file-based logging
26
+ begin
27
+ require "syslogger"
28
+ logger Syslogger.new("<%= application %>-unicorn", Syslog::LOG_PID, Syslog::LOG_LOCAL1)
29
+ rescue
30
+ stderr_path "<%= shared_path %>/log/unicorn.stderr.log"
31
+ stdout_path "<%= shared_path %>/log/unicorn.stdout.log"
32
+ end
30
33
 
31
34
  # combine REE with "preload_app true" for memory savings
32
35
  # http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: capper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.1
5
+ version: 0.7.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Benedikt B\xC3\xB6hm"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-10-13 00:00:00 +02:00
13
+ date: 2011-10-14 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency