flapjack 0.6.40 → 0.6.41

Sign up to get free protection for your applications and to get access to all the features.
data/lib/flapjack/api.rb CHANGED
@@ -83,6 +83,12 @@ module Flapjack
83
83
  def bootstrap(opts = {})
84
84
  thin_bootstrap(opts)
85
85
  @redis = Flapjack::RedisPool.new(:config => opts[:redis_config], :size => 1)
86
+
87
+ if config && config['access_log']
88
+ access_logger = Flapjack::RackLogger.new(config['access_log'])
89
+ use Rack::CommonLogger, access_logger
90
+ end
91
+
86
92
  end
87
93
 
88
94
  def cleanup
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  module Flapjack
4
- VERSION = "0.6.40"
4
+ VERSION = "0.6.41"
5
5
  end
data/lib/flapjack/web.rb CHANGED
@@ -42,9 +42,6 @@ module Flapjack
42
42
  end
43
43
  use Rack::MethodOverride
44
44
 
45
- web_logger = Flapjack::RackLogger.new('log/web_access.log')
46
- use Rack::CommonLogger, web_logger
47
-
48
45
  class << self
49
46
  include Flapjack::ThinPikelet
50
47
 
@@ -56,6 +53,11 @@ module Flapjack
56
53
  def bootstrap(opts = {})
57
54
  thin_bootstrap(opts)
58
55
  @redis = Flapjack::RedisPool.new(:config => opts[:redis_config], :size => 1)
56
+
57
+ if config && config['access_log']
58
+ access_logger = Flapjack::RackLogger.new(config['access_log'])
59
+ use Rack::CommonLogger, access_logger
60
+ end
59
61
  end
60
62
 
61
63
  def cleanup
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flapjack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.40
4
+ version: 0.6.41
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -517,12 +517,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
517
517
  - - ! '>='
518
518
  - !ruby/object:Gem::Version
519
519
  version: '0'
520
+ segments:
521
+ - 0
522
+ hash: -3138771098792408705
520
523
  required_rubygems_version: !ruby/object:Gem::Requirement
521
524
  none: false
522
525
  requirements:
523
526
  - - ! '>='
524
527
  - !ruby/object:Gem::Version
525
528
  version: '0'
529
+ segments:
530
+ - 0
531
+ hash: -3138771098792408705
526
532
  requirements: []
527
533
  rubyforge_project:
528
534
  rubygems_version: 1.8.23