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

[whimsy] branch master updated: Move to lib directory; remove unneeded requires

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

curcuru 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 3bd5f07  Move to lib directory; remove unneeded requires
3bd5f07 is described below

commit 3bd5f07e7105d59e3bfc7d1d8f28cf7a313d010d
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Mon May 7 17:19:45 2018 -0400

    Move to lib directory; remove unneeded requires
---
 {tools => lib/whimsy}/logparser.rb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tools/logparser.rb b/lib/whimsy/logparser.rb
similarity index 98%
rename from tools/logparser.rb
rename to lib/whimsy/logparser.rb
index df1f5e2..5e384bc 100755
--- a/tools/logparser.rb
+++ b/lib/whimsy/logparser.rb
@@ -1,13 +1,10 @@
 #!/usr/bin/env ruby
 # Gather simple statistics from whimsy server logs
 # TODO security check ASF::Auth.decode before reading log files
-$LOAD_PATH.unshift File.realpath(File.expand_path('../../lib', __FILE__))
 require 'whimsy/asf'
 require 'json'
-require 'set'
 require 'stringio'
 require 'zlib'
-require 'yaml'
 
 # Utility methods to turn server logs into hashes of interesting data
 module LogParser
@@ -156,6 +153,7 @@ module LogParser
   # @param d directory to scan for error.log*
   # @return hash of arrays of interesting entries
   def parse_error_logs(d, logs = {})
+    
     Dir[File.join(d, 'error.lo*')].each do |f|
       parse_error_log(f, logs)
     end

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