Skip to content

Commit

Permalink
Format was changed a while back
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Feb 2, 2024
1 parent b82333b commit aa610e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whimsy/logparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def read_logz(f)
# @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
Expand Down

0 comments on commit aa610e5

Please sign in to comment.