[Groonga-commit] groonga/groonga-query-log at 53a8c0e [master] analyzer: fix a bug that options aren't applied when --stream is given

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 17 14:07:10 JST 2015


Kouhei Sutou	2015-04-17 14:07:10 +0900 (Fri, 17 Apr 2015)

  New Revision: 53a8c0e646140070cd3ec70694878cf963ffaa66
  https://github.com/groonga/groonga-query-log/commit/53a8c0e646140070cd3ec70694878cf963ffaa66

  Message:
    analyzer: fix a bug that options aren't applied when --stream is given

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

  Modified: lib/groonga/query-log/analyzer.rb (+3 -1)
===================================================================
--- lib/groonga/query-log/analyzer.rb    2015-04-15 14:33:33 +0900 (3b86c96)
+++ lib/groonga/query-log/analyzer.rb    2015-04-17 14:07:10 +0900 (eeee933)
@@ -69,7 +69,9 @@ module Groonga
         statistics = SizedStatistics.new
         statistics.apply_options(@options)
         if stream
-          streamer = Streamer.new(create_reporter(statistics))
+          reporter = create_reporter(statistics)
+          reporter.apply_options(@options)
+          streamer = Streamer.new(reporter)
           streamer.start
           process_statistic = lambda do |statistic|
             streamer << statistic
-------------- next part --------------
HTML����������������������������...
Download 



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