akita-har_logger 0.2.13 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3b611831d6f7988fe3b4bdbd3b1f23cf3e7943b64d982359efe3479e5ccae89
4
- data.tar.gz: 5f13ca181485730ee97ce59135189f42b6239ca1dfd7ac5149dfc0b77fbccd16
3
+ metadata.gz: 9eed2465cdafed5eb9d0af31022054193efdcd6ba8b2866a466c51554e24ab43
4
+ data.tar.gz: 4553cd54a99c9d1a2958657e90b31deeb40e237d508bbd1b80c9cbc59064ef64
5
5
  SHA512:
6
- metadata.gz: '00192467492c3d4faeec67d204f87c19f898004d202d52c40ea56e44b4eca30b6f3f22718000e592fdec5f4b74673c13aecf23f13a668ec87fd02e0e15041948'
7
- data.tar.gz: fb3e2004d5b971cbd081e690afebdffb904491de368f44d703635ba7b5c2aeeddae32fb7612fe4bbdef804dee930bd596005002ae2a2d5a1abdbf5195588b8cc
6
+ metadata.gz: 04ff7a6f33614994d7bc82d4fb52b5b3957be1f405df36316330dd811d7949968325eaf997276d775e85f1df17461c4733cebdae9eeef6fb0bd4be53f309cdb0
7
+ data.tar.gz: f0325184bc764d7eba84573d164bed1c676300cfac8f27b63dafea6f0ebafe80dd58cacc965c694830355c603a7a23b6c2435b3a1b92c22be89093c06869cc0e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- akita-har_logger (0.2.13)
4
+ akita-har_logger (0.2.14)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -55,9 +55,6 @@ module Akita
55
55
  saved_input = env['rack.input']
56
56
  env['rack.input'] = StringIO.new request_body
57
57
 
58
- # Buffer the response body in case it's not a rewindable stream.
59
- body = HarLogger.bufferBody(body)
60
-
61
58
  @entry_queue << (HarEntry.new start_time, wait_time_ms, env, status,
62
59
  headers, body)
63
60
 
@@ -74,19 +71,12 @@ module Akita
74
71
  # Logs the given exception.
75
72
  def self.logException(context, e)
76
73
  Rails.logger.debug "AKITA: Exception while #{context}: #{e.message} "\
77
- "(#{e.class.name})"
74
+ "(#{e.class.name}) in thread #{Thread.current}"
78
75
  e.backtrace.each { |frame|
79
76
  Rails.logger.debug "AKITA: #{frame}"
80
77
  }
81
78
  end
82
79
 
83
- # Reads the given body into an array and returns the result.
84
- def self.bufferBody(body)
85
- result = []
86
- body.each { |part| result << part }
87
- result
88
- end
89
-
90
80
  # Logging filter for `ActionController`s.
91
81
  # TODO: Some amount of code duplication here. Should refactor.
92
82
  class Filter
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Akita
4
4
  module HarLogger
5
- VERSION = "0.2.13"
5
+ VERSION = "0.2.14"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akita-har_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jed Liu