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 aa610e56 Format was changed a while back
aa610e56 is described below

commit aa610e56a9a172dd0e106f278b01dd209215495c
Author: Sebb <[email protected]>
AuthorDate: Fri Feb 2 14:58:19 2024 +0000

    Format was changed a while back
---
 lib/whimsy/logparser.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/logparser.rb b/lib/whimsy/logparser.rb
index 040a5d7c..52838f77 100755
--- a/lib/whimsy/logparser.rb
+++ b/lib/whimsy/logparser.rb
@@ -78,7 +78,7 @@ module LogParser
   # @param f filename of whimsy_access.log or .gz
   # @return array of reduced, scrubbed entries as hashes
   def parse_whimsy_access(f)
-    access = read_logz(f).scan(/<%JSON:httpd_access%> (\{.*\})/).flatten
+    access = read_logz(f).scan(/<%JSON:apache_access%> (\{.*\})/).flatten
     logs = JSON.parse('[' + access.join(',') + ']').reject do |i|
       (i['useragent'] =~ /Ping My Box/) || (i['uri'] =~ 
Regexp.union(IGNORED_URIS)) || (i['status'] == 304)
     end

Reply via email to