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: 8fb30c62f0bf8046510e5f9bc1c6a4e492ed11ad1c92816db674439a357340a7
4
- data.tar.gz: caaea2325a58e39c2cac72014eeb43be934a141a99de9910075ddc0dab05a84f
3
+ metadata.gz: daa6c5ef51f9a573f2535891b366cb17f973af2cceb7c1368985d5d0f43474b2
4
+ data.tar.gz: 748e7c8f5a74d53a0db7637a6e2f0f9f01b3fd8ae726095b77d934bbaa0ce215
5
5
  SHA512:
6
- metadata.gz: 01d1b53bf2df603703ee7797c99f046bc3fad526b276591446d88a69399c2834c638705efc1aad6abc7606481fe7154cf98fe0fdcdd8b83014bc69de139fd75d
7
- data.tar.gz: 9662c11b0821fbfeaf6749fb613a19c59b5ee053ef802eb739696fc938a800dfc48ec797f081406590bf623cb202bc01c1f21758e3defc20ca45cfc77035453a
6
+ metadata.gz: f971b0699634d81b5c1ad45693e103e5ca68a3de0390dbf21e359cf61b7b3dd6a4bca8a71e03e33469a1106f724eee07cd4ddc6938d25bd2e37ba35da446562b
7
+ data.tar.gz: 27362f856c0bd7347697f714ce61aaca856f6a1b0e62f5bfa9594197be1377721d89c560221386cb9eb3ff4daeb13a2164277023f309cf5c44ec9dccc4a2920d
@@ -1,6 +1,6 @@
1
1
  module PrettyLogger::ControllerMethods
2
- def pretty_logit
3
- request_logger.log_request
2
+ def pretty_logit(extra_text=nil)
3
+ request_logger.log_request(extra_text)
4
4
  end
5
5
 
6
6
  def request_logger
@@ -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
@@ -1,3 +1,3 @@
1
1
  module PrettyLogger
2
- VERSION = "0.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rocco Nicholls