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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9d29ac7d799d22088daaf7c0c5598030ab6c3290ef6e4dc2d81dc2b72e5209e
4
- data.tar.gz: 1fc1f04bdca1d271036fdfdbfa0b6160396bf12bdf303c9e3819375aaadf2b6f
3
+ metadata.gz: 72d2fbdba26d6fa20cef0fc82c16ecd29eeb135ece6178804a9737d6bc95e838
4
+ data.tar.gz: 5ac8a548f0f2ac3db060ac4375d4756539a5262b95b9aebc0fc496e6e0003caf
5
5
  SHA512:
6
- metadata.gz: df42cc6bc0a492926115ac9a2b9bbf9c2ed1c37a447f3e5c66d1d8bcc82fca674580607f6b95ce7588467a913725b67cad981508c2ba9d716d595e1a8d1c69fd
7
- data.tar.gz: '091a7e61f5d564f4e3ff1789ef89223339f42da0dd29090de024edcdfcc16e8a9bc0514915434213d806018560e0368fba6f25ef5aaef1a69f9819163f9ed399'
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
- CONTEXT = /(?<context>[^ ]+Error)/
189
- ERROR_REGEXP = /^\[#{ID}\] #{CONTEXT} \((?<description>.*)\):/
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
- <li class="nav-item">
167
- <a href="#<%= item.downcase.gsub(' ', '-') %>" data-close><%= item %></a>
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
- <div class="card-section">
317
+ <div class="card-section">
309
318
  <%= render "output_table.html.erb", report %>
310
319
  </div>
311
320
  </article>
@@ -1,3 +1,3 @@
1
1
  module LogSense
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
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.1
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-20 00:00:00.000000000 Z
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