rack-fluentd-logger 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/fluentd_logger.rb +1 -1
- data/lib/rack/fluentd_logger_version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddfafb67d58a7d6eb93ccdb74af42510b516f5aee1a61ea5a74b5d9ecb45df8b
|
4
|
+
data.tar.gz: 8c8755345bffaf5099ea537afb8ea01b860826f8706ae404d4dcd913545b7a76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0e1198104bb80f1d4b697c585ae60cc6c278888973948b4b336ed0ab624880c544de3db9cec9f1408d0c0be65a1c694cc6572a1073708fae78b52e89977cb14
|
7
|
+
data.tar.gz: 47dd423e3e24c1cc1bb373dcda3f1b79136e9cfdf19feefd35e2dc7688ce8beca72583ccc66c711b5f8391c2a68523db6fce2373fbb1e966eb71c11390d0f629
|
data/lib/rack/fluentd_logger.rb
CHANGED
@@ -63,7 +63,7 @@ module Rack
|
|
63
63
|
body = body.body if body.respond_to?(:body)
|
64
64
|
body = [body] if body.is_a? String
|
65
65
|
|
66
|
-
body = if headers['Content-Type'].include? 'json'
|
66
|
+
body = if headers['Content-Type'] && headers['Content-Type'].include? 'json'
|
67
67
|
body.map { |s| self.class.json_parser&.call(s) }
|
68
68
|
else
|
69
69
|
body[0..@max_body_non_json]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-fluentd-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikhail Slyusarev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.7'
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email:
|
71
71
|
- slyusarevmikhail@gmail.com
|
72
72
|
executables: []
|
@@ -80,7 +80,7 @@ homepage: https://github.com/mikhailvs/rack-fluentd-logger
|
|
80
80
|
licenses:
|
81
81
|
- MIT
|
82
82
|
metadata: {}
|
83
|
-
post_install_message:
|
83
|
+
post_install_message:
|
84
84
|
rdoc_options: []
|
85
85
|
require_paths:
|
86
86
|
- lib
|
@@ -95,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
|
-
rubygems_version: 3.
|
99
|
-
signing_key:
|
98
|
+
rubygems_version: 3.3.3
|
99
|
+
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Rack middleware for logging traffic to fluentd.
|
102
102
|
test_files: []
|