You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2018/05/05 19:38:34 UTC

[whimsy] branch master updated: Different line break works better with Eclipse Ruby plugin

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5100246  Different line break works better with Eclipse Ruby plugin
5100246 is described below

commit 51002465a46cbca5c7a9fcf2760732144525d1c0
Author: Sebb <se...@apache.org>
AuthorDate: Sat May 5 20:38:32 2018 +0100

    Different line break works better with Eclipse Ruby plugin
---
 tools/logparser.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/logparser.rb b/tools/logparser.rb
old mode 100644
new mode 100755
index cfc0474..df1f5e2
--- a/tools/logparser.rb
+++ b/tools/logparser.rb
@@ -65,8 +65,9 @@ module LogParser
   # @return array of reduced, scrubbed entries as hashes
   def parse_whimsy_access(f)
     access = read_logz(f).scan(/<%JSON:httpd_access%> (\{.*\})/).flatten
-    logs = JSON.parse('[' + access.join(',') + ']')
-      .reject{ |i| (i['useragent'] =~ /Ping My Box/) || (i['uri'] =~ Regexp.union(IGNORED_URIS)) || (i['status'] == 304) }
+    logs = JSON.parse('[' + access.join(',') + ']').reject { |i| 
+      (i['useragent'] =~ /Ping My Box/) || (i['uri'] =~ Regexp.union(IGNORED_URIS)) || (i['status'] == 304) 
+    }
     logs.each do |i|
       %w(geo_country geo_long geo_lat geo_coords geo_city geo_combo duration request bytes vhost document request_method clientip query_string).each do |g|
         i.delete(g)

-- 
To stop receiving notification emails like this one, please contact
sebb@apache.org.