getaround_utils 0.2.5 → 0.2.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa8204cb23f0266e9a93adc5b0d94eb12c5fe09580b2ef4d2673673a8533b774
|
4
|
+
data.tar.gz: b8f000032d02302b61e53016727ef2b45310ecdfde43a063b1a7172433d6c6c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feb184c259c0ba0d331b67129f10e0ac623486bbed53554ffd427ede56f1aea0909e3c9063f78399408cdb11e816c960419961e072f0fec5b1d642f7d813bd63
|
7
|
+
data.tar.gz: 290b8c6664d68c54f97101767e31b29c614f62bcd88eafb88a2f11d05573ff8870b4c7133fbbfb10aa3ae866e4fc634275587de1656253d26102927658f7a605
|
data/Gemfile.lock
CHANGED
@@ -34,6 +34,6 @@ module GetaroundUtils::Mixins::Loggable
|
|
34
34
|
|
35
35
|
def loggable_log(severity, message, payload = {})
|
36
36
|
base_append_infos_to_loggable(payload)
|
37
|
-
base_loggable_logger.send(severity.to_sym, message, payload)
|
37
|
+
base_loggable_logger.send(severity.to_sym, msg: message, **payload)
|
38
38
|
end
|
39
39
|
end
|
@@ -6,7 +6,7 @@ require 'getaround_utils/utils/deep_key_value'
|
|
6
6
|
module GetaroundUtils; end
|
7
7
|
module GetaroundUtils::Ougai; end
|
8
8
|
|
9
|
-
class GetaroundUtils::Ougai::
|
9
|
+
class GetaroundUtils::Ougai::DeepKeyValueFormatter < Ougai::Formatters::Base
|
10
10
|
def _call(severity, _time, progname, data)
|
11
11
|
message = data.delete(:msg)
|
12
12
|
data[:message] = message if message != 'No message'
|
@@ -45,7 +45,7 @@ class GetaroundUtils::Railties::Ougai < Rails::Railtie
|
|
45
45
|
config.ougai_logger = OugaiRailsLogger.new(STDOUT)
|
46
46
|
config.ougai_logger.after_initialize if Rails::VERSION::MAJOR < 6
|
47
47
|
config.ougai_logger.level = log_level
|
48
|
-
config.ougai_logger.formatter = GetaroundUtils::Ougai::
|
48
|
+
config.ougai_logger.formatter = GetaroundUtils::Ougai::DeepKeyValueFormatter.new
|
49
49
|
config.ougai_logger.before_log = lambda do |data|
|
50
50
|
request_store = RequestStore.store[:ougai] || {}
|
51
51
|
data.merge!(request_store) if request_store&.any?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: getaround_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drivy
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-09-
|
12
|
+
date: 2020-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|