pretty_logger 1.4.0 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pretty_logger/request_logger.rb +1 -1
- data/lib/pretty_logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed8c71c91efb2ce9671f3b3fc389c2985d4df6429761d09f4fec9c1ce39c1a49
|
4
|
+
data.tar.gz: 6996f8e1596434b00613c888a38338f689b31227701885f3eb77d95d3cd36b5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfda17da5966cc3736abaed05b7a341049989eef2bd221b5601a6dc094f5c7f6261a0bf13a3485e1c638d02641d35f8103ec48f755794ec47d71467365de562b
|
7
|
+
data.tar.gz: dfa2af2c9d9682b33d46a404657e1ba5a2bc5674dd771ed70373ac2524f47f89a09b4b8fb957204dffa1ab4323e8638338ac55eab310ebd63832d2bc5fcf7105
|
@@ -10,7 +10,7 @@ class PrettyLogger::RequestLogger
|
|
10
10
|
def log_request(extra_text=nil)
|
11
11
|
info([
|
12
12
|
"#{pretty_user} #{request.method.upcase} #{request.path} #{extra_text}\e[0m",
|
13
|
-
params.blank? ? nil : truncate(pretty_message(params.
|
13
|
+
params.blank? ? nil : truncate(pretty_message(params.as_json.deep_symbolize_keys)),
|
14
14
|
].compact.join("\n"))
|
15
15
|
end
|
16
16
|
|