timber 2.3.2 → 2.3.3

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
  SHA1:
3
- metadata.gz: 373352a84897146620f309326fc062b02878325a
4
- data.tar.gz: 96e89b0e9e0fed80d606e24878f8913e57e41905
3
+ metadata.gz: f09c56cfe5173b5ce695a168cef80d05da0eeec1
4
+ data.tar.gz: bf27d8756542ce0cbebb07a2b9a5d8a3ed8b368f
5
5
  SHA512:
6
- metadata.gz: 2d51f28a5d9a87976411f2b72ccfc20ab2048df76f97fed76a0529aa96950e971d7dff8b62dc6f5a83e5f92a0acf9572a148e6ef8e9ee83dae2872bdb54c2efc
7
- data.tar.gz: b5b37925111a637b8eae96901660f15801b94501f191a4100d65e15539f6115bf4e1bc823be695d98ffff2f462918aeb1fc2fb8661e0550e3f303096588ab80c
6
+ metadata.gz: abc50eed8315df021d5070f5a5962fd420a2641f9ef95bb536c06680b92c2168d3b19afe0c6c114310ea55495361cf105bc123cd06cce09d00de770b9bc89b06
7
+ data.tar.gz: c303f0f26121a45b7c6e4e9ba218a5a22df36323fc4a31d705caeaa40e9009117543881da114c5319b09d571deba44147f45d972a25477ab518959fbe56ba4a8
@@ -42,6 +42,8 @@ matrix:
42
42
  gemfile: gemfiles/rails-4.0.gemfile
43
43
  - rvm: 2.4.2
44
44
  gemfile: gemfiles/rails-4.1.gemfile
45
+ - rvm: "jruby-1.7.26"
46
+ - rvm: "jruby-9.1.9.0"
45
47
  notifications:
46
48
  email: false
47
49
  slack:
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.3.3] - 2017-10-02
11
+
12
+ ### Changed
13
+
14
+ - Raises the limit on the `params_json` field for the `ControllerCallEvent` to `32768` bytes.
15
+ - Bump log event JSON schema version to `3.1.3`.
16
+
10
17
  ## [2.3.2] - 2017-09-27
11
18
 
12
19
  ### Fixed
@@ -59,7 +66,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
59
66
  instead of applying back pressure.
60
67
 
61
68
 
62
- [Unreleased]: https://github.com/timberio/timber-ruby/compare/v2.3.2...HEAD
69
+ [Unreleased]: https://github.com/timberio/timber-ruby/compare/v2.3.3...HEAD
70
+ [2.3.2]: https://github.com/timberio/timber-ruby/compare/v2.3.2...v2.3.3
63
71
  [2.3.2]: https://github.com/timberio/timber-ruby/compare/v2.3.1...v2.3.2
64
72
  [2.3.1]: https://github.com/timberio/timber-ruby/compare/v2.3.0...v2.3.1
65
73
  [2.3.0]: https://github.com/timberio/timber-ruby/compare/v2.2.2...v2.3.0
@@ -162,7 +162,7 @@ module Timber
162
162
  rescue OpenSSL::SSL::SSLError => e
163
163
  if http.ssl_version != :SSLv23
164
164
  http.ssl_version = :SSLv23
165
- retry
165
+ issue!(req)
166
166
  end
167
167
  end
168
168
 
@@ -77,12 +77,8 @@ module Timber
77
77
  # @example Everything else
78
78
  # Timber::Config.instance.debug_to_file!("log/timber.log")
79
79
  def debug_to_file!(file_path)
80
- unless File.exist? File.dirname path
81
- FileUtils.mkdir_p File.dirname path
82
- end
83
- file = File.open file_path, "a"
84
- file.binmode
85
- file.sync = config.autoflush_log
80
+ FileUtils.mkdir_p( File.dirname(file_path) )
81
+ file = File.open(file_path, "ab")
86
82
  file_logger = ::Logger.new(file)
87
83
  file_logger.formatter = SimpleLogFormatter.new
88
84
  self.debug_logger = file_logger
@@ -10,7 +10,7 @@ module Timber
10
10
  # @note This event should be installed automatically through integrations,
11
11
  # such as the {Integrations::ActionController::LogSubscriber} integration.
12
12
  class ControllerCall < Timber::Event
13
- PARAMS_JSON_MAX_BYTES = 8192.freeze
13
+ PARAMS_JSON_MAX_BYTES = 32_768.freeze
14
14
  PASSWORD_NAME = 'password'.freeze
15
15
 
16
16
  attr_reader :controller, :action, :params, :format
@@ -254,7 +254,9 @@ module Timber
254
254
  num_reqs = 0
255
255
 
256
256
  while num_reqs < @requests_per_conn
257
- Timber::Config.instance.debug { "Waiting on next request, threads waiting: #{@request_queue.num_waiting}" }
257
+ if @request_queue.size > 0
258
+ Timber::Config.instance.debug { "Waiting on next request, threads waiting: #{@request_queue.size}" }
259
+ end
258
260
 
259
261
  request_attempt = @request_queue.deq
260
262
 
@@ -11,7 +11,7 @@ module Timber
11
11
  BINARY_LIMIT_THRESHOLD = 1_000.freeze
12
12
  DT_PRECISION = 6.freeze
13
13
  MESSAGE_MAX_BYTES = 8192.freeze
14
- SCHEMA = "https://raw.githubusercontent.com/timberio/log-event-json-schema/v3.1.1/schema.json".freeze
14
+ SCHEMA = "https://raw.githubusercontent.com/timberio/log-event-json-schema/v3.1.3/schema.json".freeze
15
15
 
16
16
  attr_reader :context_snapshot, :event, :level, :message, :progname, :tags, :time, :time_ms
17
17
 
@@ -1,3 +1,3 @@
1
1
  module Timber
2
- VERSION = "2.3.2"
2
+ VERSION = "2.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timber
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timber Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-27 00:00:00.000000000 Z
11
+ date: 2017-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack