logjam_agent 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,9 +61,10 @@ module LogjamAgent
61
61
  end
62
62
 
63
63
  def after_dispatch(env, result, run_time_ms)
64
- status = result ? result.first : 500
65
- _, additions, view_time, _ = Thread.current.thread_variable_get(:time_bandits_completed_info)
66
-
64
+ status = result ? result.first.to_i : 500
65
+ if completed_info = Thread.current.thread_variable_get(:time_bandits_completed_info)
66
+ _, additions, view_time, _ = completed_info
67
+ end
67
68
  request_info = {:total_time => run_time_ms, :code => status, :view_time => view_time || 0.0}
68
69
 
69
70
  if (allowed_time_ms = env['HTTP_X_LOGJAM_CALLER_TIMEOUT'].to_i) > 0 && (run_time_ms > allowed_time_ms)
@@ -36,7 +36,7 @@ module LogjamAgent
36
36
  if Rails.env.development?
37
37
  def format_host_info(proganme); ""; end
38
38
  else
39
- def format_host_info(proganme)
39
+ def format_host_info(progname)
40
40
  " #{@hostname} #{progname||@app_name}[#{$$}]"
41
41
  end
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 0
10
- version: 0.7.0
9
+ - 1
10
+ version: 0.7.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefan Kaes