heavylog 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/heavylog.rb +1 -1
- data/lib/heavylog/railtie.rb +1 -1
- data/lib/heavylog/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 817f124071c11b74c359b8ce78ec24cc8778bfab7c3d3ee79da64847e30f1f66
|
4
|
+
data.tar.gz: 80ecb337b3e34dc5a50419f31d3a9bb20fdddbe7da23ffefc52b9b2197eee757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e8d27f4dd9c4e69bd4e2a8103a085e246f0e9067bdd056c328efd5edf73d6c9158626bd68245bc7ace3bedfe58ef6a8c821de034d3737d0670231f2cbf47e1
|
7
|
+
data.tar.gz: ade91b07e69e29c288b5cda82b3dd00717248099bbf7da75e9f375e08732d53a506f9345f2565ea349853eff66a1c1de65219160c70949fba532e6a49323d463
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
heavylog (0.0.
|
4
|
+
heavylog (0.0.19)
|
5
5
|
actionpack (>= 5)
|
6
6
|
activesupport (>= 5)
|
7
7
|
railties (>= 5)
|
@@ -48,7 +48,7 @@ GEM
|
|
48
48
|
rexml
|
49
49
|
kramdown-parser-gfm (1.1.0)
|
50
50
|
kramdown (~> 2.0)
|
51
|
-
loofah (2.9.
|
51
|
+
loofah (2.9.1)
|
52
52
|
crass (~> 1.0.2)
|
53
53
|
nokogiri (>= 1.5.9)
|
54
54
|
method_source (1.0.0)
|
@@ -157,4 +157,4 @@ DEPENDENCIES
|
|
157
157
|
solargraph
|
158
158
|
|
159
159
|
BUNDLED WITH
|
160
|
-
2.2.
|
160
|
+
2.2.15
|
data/lib/heavylog.rb
CHANGED
@@ -139,7 +139,7 @@ module Heavylog
|
|
139
139
|
formatted = Heavylog.formatter.call(request)
|
140
140
|
Heavylog.logger.send(Heavylog.log_level, formatted)
|
141
141
|
rescue StandardError => e
|
142
|
-
config.error_handler&.(
|
142
|
+
config.error_handler&.(e)
|
143
143
|
end
|
144
144
|
|
145
145
|
def finish_sidekiq
|
data/lib/heavylog/railtie.rb
CHANGED
@@ -7,7 +7,7 @@ module Heavylog
|
|
7
7
|
config.heavylog.path = "log/heavylog.log"
|
8
8
|
config.heavylog.message_limit = 1024 * 1024 * 50 # 50MB
|
9
9
|
config.heavylog.log_sidekiq = false
|
10
|
-
config.heavylog.error_handler = lambda { |e
|
10
|
+
config.heavylog.error_handler = lambda { |e|
|
11
11
|
Kernel.puts "HeavyLog: Error writing to log: #{e.class}: #{e.message}\n #{e.backtrace.join("\n ")}"
|
12
12
|
}
|
13
13
|
|
data/lib/heavylog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heavylog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristjan Rang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: '0'
|
230
230
|
requirements: []
|
231
|
-
rubygems_version: 3.2.
|
231
|
+
rubygems_version: 3.2.15
|
232
232
|
signing_key:
|
233
233
|
specification_version: 4
|
234
234
|
summary: Format all Rails logging per request
|