minimal_logging 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17503e27b9db04c34238c7787f47bdbbee88f0b1
|
4
|
+
data.tar.gz: 38d419ed2fd8a8463ad3ae7e3eedbef0c07423c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 958d80e9a551cc1f9a38fc87f7a8525b0135557515e7cc9b33d574f464ae6dceff0854e45e36a720b385235a95b24f69ed22bd78cea3e9c9a28a2b05a1ada151
|
7
|
+
data.tar.gz: 7f99d891d2b0cb7b472b342a2c74a3c64a93f7684a1c6d3ff99515931131af2cce9451e2b1d0df67fc496c2582633ca786ea708ac6893273bc3a19b1aab39ea2
|
@@ -10,13 +10,12 @@ class ActionController::LogSubscriber
|
|
10
10
|
params = payload[:params].except(*INTERNAL_PARAMS)
|
11
11
|
format = payload[:format]
|
12
12
|
format = format.to_s.upcase if format.is_a?(Symbol)
|
13
|
+
action = "#{payload[:action]}".upcase.red
|
14
|
+
controller = " #{payload[:controller]}".red
|
13
15
|
|
14
|
-
info
|
15
|
-
|
16
|
-
unless params.empty?
|
17
|
-
info " Params: ".colorize(:blue)
|
18
|
-
ap params
|
19
|
-
end
|
16
|
+
info(action + controller)
|
17
|
+
info "Format #{format}".light_magenta
|
18
|
+
info("Params".blue) && ap(params) unless params.empty?
|
20
19
|
end
|
21
20
|
|
22
21
|
def process_action(event)
|
@@ -40,8 +40,8 @@ Rails::Rack::Logger.class_eval do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def started_request_message(request)
|
43
|
-
method = request.request_method.
|
44
|
-
path = request.filtered_path.
|
43
|
+
method = request.request_method.blue
|
44
|
+
path = request.filtered_path.magenta
|
45
45
|
output = method + " " + path
|
46
46
|
end
|
47
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimal_logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Nelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|