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 +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +9 -1
- data/lib/timber/cli/api.rb +1 -1
- data/lib/timber/config.rb +2 -6
- data/lib/timber/events/controller_call.rb +1 -1
- data/lib/timber/log_devices/http.rb +3 -1
- data/lib/timber/log_entry.rb +1 -1
- data/lib/timber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f09c56cfe5173b5ce695a168cef80d05da0eeec1
|
4
|
+
data.tar.gz: bf27d8756542ce0cbebb07a2b9a5d8a3ed8b368f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abc50eed8315df021d5070f5a5962fd420a2641f9ef95bb536c06680b92c2168d3b19afe0c6c114310ea55495361cf105bc123cd06cce09d00de770b9bc89b06
|
7
|
+
data.tar.gz: c303f0f26121a45b7c6e4e9ba218a5a22df36323fc4a31d705caeaa40e9009117543881da114c5319b09d571deba44147f45d972a25477ab518959fbe56ba4a8
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
data/lib/timber/cli/api.rb
CHANGED
data/lib/timber/config.rb
CHANGED
@@ -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
|
-
|
81
|
-
|
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 =
|
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
|
-
|
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
|
|
data/lib/timber/log_entry.rb
CHANGED
@@ -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.
|
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
|
|
data/lib/timber/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|