[Groonga-commit] groonga/groonga-query-log at 98c5354 [master] Use $stdin for no log files are specified instead of ARGF

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 6 11:24:29 JST 2013


Kouhei Sutou	2013-12-06 11:24:29 +0900 (Fri, 06 Dec 2013)

  New Revision: 98c535401c233ce97f17afcf8420943423ede6e2
  https://github.com/groonga/groonga-query-log/commit/98c535401c233ce97f17afcf8420943423ede6e2

  Message:
    Use $stdin for no log files are specified instead of ARGF
    
    We don't change ARGV destructively on parsing command line options. So
    ARGF doesn't work expectedly. ARGF uses command line options as input.

  Modified files:
    lib/groonga/query-log/analyzer.rb

  Modified: lib/groonga/query-log/analyzer.rb (+1 -1)
===================================================================
--- lib/groonga/query-log/analyzer.rb    2013-11-01 16:27:45 +0900 (3405b05)
+++ lib/groonga/query-log/analyzer.rb    2013-12-06 11:24:29 +0900 (8283413)
@@ -86,7 +86,7 @@ module Groonga
           unless log_via_stdin?
             raise(NoInputError, "Error: Please specify input log files.")
           end
-          parser.parse(ARGF, &process_statistic)
+          parser.parse($stdin, &process_statistic)
         end
 
         log_paths.each do |log_path|
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index