log_sense 1.2.1 → 1.2.2
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 +4 -4
- data/lib/log_sense/rails_log_parser.rb +2 -2
- data/lib/log_sense/templates/rails.html.erb +13 -4
- data/lib/log_sense/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72d2fbdba26d6fa20cef0fc82c16ecd29eeb135ece6178804a9737d6bc95e838
|
|
4
|
+
data.tar.gz: 5ac8a548f0f2ac3db060ac4375d4756539a5262b95b9aebc0fc496e6e0003caf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bdecd45808f1257cb7aeaa97d2cf13cf0e62fbde74365c351a2e5440784e99bbfa29271746db66a5dba2bb5e1ae5891aaac4cb982f37ef8072d9e079e3b032a
|
|
7
|
+
data.tar.gz: d88cca775be4a8828ebaecec757cee87e52338f36784c3a59d6ab8b703328982ecff71233640560f832c4b1f9d7fa4c299a47344d3b79139f518404e02f32380
|
|
@@ -185,8 +185,8 @@ module LogSense
|
|
|
185
185
|
# [584cffcc-f1fd-4b5c-bb8b-b89621bd4921] ActionController::RoutingError (No route matches [GET] "/assets/foundation-icons.svg"):
|
|
186
186
|
# [fd8df8b5-83c9-48b5-a056-e5026e31bd5e] ActionView::Template::Error (undefined method `all_my_ancestor' for nil:NilClass):
|
|
187
187
|
# [d17ed55c-f5f1-442a-a9d6-3035ab91adf0] ActionView::Template::Error (undefined method `volunteer_for' for #<DonationsController:0x007f4864c564b8>
|
|
188
|
-
|
|
189
|
-
ERROR_REGEXP = /^\[#{ID}\]
|
|
188
|
+
EXCEPTION = /[A-Za-z_0-9:]+(Error)?/
|
|
189
|
+
ERROR_REGEXP = /^\[#{ID}\] (?<context>#{EXCEPTION}) \((?<description>(#{EXCEPTION})?.*)\):/
|
|
190
190
|
|
|
191
191
|
def self.match_and_process_error line
|
|
192
192
|
matchdata = ERROR_REGEXP.match line
|
|
@@ -159,12 +159,14 @@
|
|
|
159
159
|
"Statuses",
|
|
160
160
|
"Rails Performance",
|
|
161
161
|
"Fatal Events",
|
|
162
|
+
"Internal Server Errrors",
|
|
163
|
+
"Errors",
|
|
162
164
|
"IPs",
|
|
163
165
|
"Command Invocation",
|
|
164
166
|
"Performance"
|
|
165
167
|
].each do |item| %>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
<li class="nav-item">
|
|
169
|
+
<a href="#<%= item.downcase.gsub(' ', '-') %>" data-close><%= item %></a>
|
|
168
170
|
</li>
|
|
169
171
|
<% end %>
|
|
170
172
|
</ul>
|
|
@@ -253,7 +255,14 @@
|
|
|
253
255
|
},
|
|
254
256
|
{ title: "Rails Performance",
|
|
255
257
|
header: ['Controller', 'Hits', 'Min', 'Avg', 'Max'],
|
|
256
|
-
rows: @data[:performance]
|
|
258
|
+
rows: @data[:performance],
|
|
259
|
+
vega_spec: {
|
|
260
|
+
"mark": "point",
|
|
261
|
+
"encoding": {
|
|
262
|
+
"x": {"field": "Avg", "type": "quantitative"},
|
|
263
|
+
"y": {"field": "Hits", "type": "quantitative"}
|
|
264
|
+
},
|
|
265
|
+
}
|
|
257
266
|
},
|
|
258
267
|
{ title: "Fatal Events",
|
|
259
268
|
header: ['Date', 'IP', 'URL', 'Description', 'Log ID'], rows: @data[:fatal],
|
|
@@ -305,7 +314,7 @@
|
|
|
305
314
|
vegaEmbed('#<%= "plot-#{index}"%>', plot_spec_<%= index %>);
|
|
306
315
|
</script>
|
|
307
316
|
<% end %>
|
|
308
|
-
|
|
317
|
+
<div class="card-section">
|
|
309
318
|
<%= render "output_table.html.erb", report %>
|
|
310
319
|
</div>
|
|
311
320
|
</article>
|
data/lib/log_sense/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: log_sense
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adolfo Villafiorita
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-12-
|
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: apache_log-parser
|