[Groonga-commit] long-long-float/droonga-engine at fb65540 [master] Create directory before output files

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Aug 29 21:13:31 JST 2014


YUKI Hiroshi	2014-08-29 21:13:31 +0900 (Fri, 29 Aug 2014)

  New Revision: fb6554070611656f7757547d936d05fb689540ce
  https://github.com/long-long-float/droonga-engine/commit/fb6554070611656f7757547d936d05fb689540ce

  Message:
    Create directory before output files

  Modified files:
    lib/droonga/command/serf_event_handler.rb

  Modified: lib/droonga/command/serf_event_handler.rb (+2 -0)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-08-29 21:07:39 +0900 (12d0fb8)
+++ lib/droonga/command/serf_event_handler.rb    2014-08-29 21:13:31 +0900 (4e0de05)
@@ -14,6 +14,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
 require "json"
+require "fileutils"
 
 require "droonga/command/remote"
 
@@ -42,6 +43,7 @@ module Droonga
       rescue Exception => exception
         #XXX Any exception blocks following serf operations.
         #    To keep it working, I rescue any exception for now.
+        FileUtils.mkdir_p(Path.serf_event_handler_errors)
         File.open(Path.serf_event_handler_error_file, "w") do |file|
           file.write(exception.inspect)
         end
-------------- next part --------------
HTML����������������������������...
Download 



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