pretty_logger 0.1.2 → 1.1.4

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: de26eada3a4365d89821cd2097a08193907e4e423396df9ca5f6ed3e5ef513dc
4
+ data.tar.gz: 0a9c56ace96ab075c1792ef01a4149a50c599eb069b5781669f714026c3678c7
5
5
  SHA512:
6
- metadata.gz: 01d1b53bf2df603703ee7797c99f046bc3fad526b276591446d88a69399c2834c638705efc1aad6abc7606481fe7154cf98fe0fdcdd8b83014bc69de139fd75d
7
- data.tar.gz: 9662c11b0821fbfeaf6749fb613a19c59b5ee053ef802eb739696fc938a800dfc48ec797f081406590bf623cb202bc01c1f21758e3defc20ca45cfc77035453a
6
+ metadata.gz: 30848208db020360ac6612fc0b9410c6d281ba67d6abe41a2c62a06252f3f3f05d46a30aa6d9950507c2936fbed2bb09387a6e8e2b29569f832a1569a2deb405
7
+ data.tar.gz: 2afefaec6fcabfa73d41e8542aa04eddbce676ebf30d152bdfe413d75e5b4e51ff24ced2218ebd4918895fc0712c574549ef4860c6182efa53716d3f203aa4a3
@@ -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,10 @@ 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
+ # Nothing change
10
11
  ::PrettyLogger::BaseLogger.info([
11
- "#{pretty_user} #{request.method.upcase} #{request.path}",
12
+ "#{pretty_user} #{request.method.upcase} #{request.path} #{extra_text}",
12
13
  params.blank? ? nil : ::PrettyLogger::BaseLogger.pretty_message(params).truncate(2000),
13
14
  ].compact.join("\n"))
14
15
  end
@@ -1,3 +1,3 @@
1
1
  module PrettyLogger
2
- VERSION = "0.1.2"
2
+ VERSION = "1.1.4"
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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rocco Nicholls