[Groonga-commit] droonga/fluent-plugin-droonga at 237694c [master] Exit on startup error

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 12 12:26:27 JST 2014


YUKI Hiroshi	2014-02-12 12:26:27 +0900 (Wed, 12 Feb 2014)

  New Revision: 237694c5560b90993ce96205227fa60575fa7d8d
  https://github.com/droonga/fluent-plugin-droonga/commit/237694c5560b90993ce96205227fa60575fa7d8d

  Message:
    Exit on startup error

  Modified files:
    lib/droonga/engine.rb

  Modified: lib/droonga/engine.rb (+3 -0)
===================================================================
--- lib/droonga/engine.rb    2014-02-12 12:16:48 +0900 (124c38d)
+++ lib/droonga/engine.rb    2014-02-12 12:26:27 +0900 (6ead034)
@@ -23,6 +23,9 @@ module Droonga
     def initialize(options={})
       @options = options
       @dispatcher = Dispatcher.new(@options)
+    rescue StartupError => error
+      $log.error(error.message)
+      exit(1)
     end
 
     def start
-------------- next part --------------
HTML����������������������������...
Download 



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