Kouhei Sutou
null+****@clear*****
Thu May 29 16:14:49 JST 2014
Kouhei Sutou 2014-05-29 16:14:49 +0900 (Thu, 29 May 2014) New Revision: 243f8cd74988ed216c5beff50cd24432d25971fe https://github.com/droonga/droonga-engine/commit/243f8cd74988ed216c5beff50cd24432d25971fe Message: Fix a bug that --log-file is ignored Modified files: lib/droonga/command/droonga_engine.rb Modified: lib/droonga/command/droonga_engine.rb (+2 -5) =================================================================== --- lib/droonga/command/droonga_engine.rb 2014-05-29 11:40:59 +0900 (8c7108c) +++ lib/droonga/command/droonga_engine.rb 2014-05-29 16:14:49 +0900 (d731530) @@ -74,7 +74,8 @@ module Droonga def open_log_file if****@confi*****_file File.open(@configuration.log_file, "a") do |file| - @log_output = file + $stdout.reopen(file) + $stderr.reopen(file) yield end else @@ -360,10 +361,6 @@ module Droonga control_write_in => control_write_in, control_read_out => control_read_out, } - if @log_output - options[:out] = @log_output - options[:err] = @log_output - end @pid = spawn(env, *command_line, options) control_write_in.close control_read_out.close -------------- next part -------------- HTML����������������������������... 다운로드