logworm_client 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.5.5
2
+ Added default logging of HEROKU_QUEUE
3
+
1
4
  v0.5.4
2
5
  Removed obsolete lw-heroku application
3
6
 
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'echoe'
2
- Echoe.new('logworm_client', '0.5.4') do |p|
2
+ Echoe.new('logworm_client', '0.5.5') do |p|
3
3
  p.description = "logworm client utilities"
4
4
  p.url = "http://www.logworm.com"
5
5
  p.author = "Pomelo, LLC"
@@ -24,7 +24,8 @@ module Logworm
24
24
  :request_path => env['REQUEST_PATH'], :request_ip => env['REMOTE_ADDR'],
25
25
  :request_method => env['REQUEST_METHOD'], :input => collect_input(env),
26
26
  :response_status => status,
27
- :profiling => appTime}) if @log_requests_short
27
+ :profiling => appTime,
28
+ :queue_size => env['HTTP_X_HEROKU_QUEUE_DEPTH'] || '-1'}) if @log_requests_short
28
29
  begin
29
30
  Timeout::timeout(1) {
30
31
  sent = 0
@@ -39,7 +39,8 @@ if defined?(ActionController)
39
39
  {:summary => "#{env['REQUEST_METHOD']} #{env['REQUEST_URI']} - #{status} #{appTime}",
40
40
  :request => env_to_log(env).merge({:input => request.request_parameters}),
41
41
  :response => {:status => status, :headers => response.headers},
42
- :profiling => appTime}) if @@log_requests_long
42
+ :profiling => appTime,
43
+ :queue_size => env['HTTP_X_HEROKU_QUEUE_DEPTH'] || '-1'}) if @@log_requests_long
43
44
  Logworm::Logger.log(:web_log,
44
45
  {:summary => "#{env['REQUEST_METHOD']} #{env['REQUEST_URI']} - #{status} #{appTime}",
45
46
  :request_path => env['REQUEST_URI'], :request_ip => env['REMOTE_ADDR'],
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{logworm_client}
5
- s.version = "0.5.4"
5
+ s.version = "0.5.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Pomelo, LLC"]
9
- s.date = %q{2010-04-02}
9
+ s.date = %q{2010-04-07}
10
10
  s.description = %q{logworm client utilities}
11
11
  s.email = %q{schapira@pomelollc.com}
12
12
  s.executables = ["lw-compute", "lw-tail"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 4
9
- version: 0.5.4
8
+ - 5
9
+ version: 0.5.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pomelo, LLC
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-02 00:00:00 -04:00
17
+ date: 2010-04-07 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency