pretty_logger 0.1.2 → 1.1.3
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: daa6c5ef51f9a573f2535891b366cb17f973af2cceb7c1368985d5d0f43474b2
|
4
|
+
data.tar.gz: 748e7c8f5a74d53a0db7637a6e2f0f9f01b3fd8ae726095b77d934bbaa0ce215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f971b0699634d81b5c1ad45693e103e5ca68a3de0390dbf21e359cf61b7b3dd6a4bca8a71e03e33469a1106f724eee07cd4ddc6938d25bd2e37ba35da446562b
|
7
|
+
data.tar.gz: 27362f856c0bd7347697f714ce61aaca856f6a1b0e62f5bfa9594197be1377721d89c560221386cb9eb3ff4daeb13a2164277023f309cf5c44ec9dccc4a2920d
|
@@ -6,9 +6,9 @@ class PrettyLogger::RequestLogger < PrettyLogger::BaseLogger
|
|
6
6
|
@current_user = current_user
|
7
7
|
end
|
8
8
|
|
9
|
-
def log_request
|
9
|
+
def log_request(extra_text=nil)
|
10
10
|
::PrettyLogger::BaseLogger.info([
|
11
|
-
"#{pretty_user} #{request.method.upcase} #{request.path}",
|
11
|
+
"#{pretty_user} #{request.method.upcase} #{request.path} #{extra_text}",
|
12
12
|
params.blank? ? nil : ::PrettyLogger::BaseLogger.pretty_message(params).truncate(2000),
|
13
13
|
].compact.join("\n"))
|
14
14
|
end
|