[Groonga-commit] droonga/droonga-engine at 21d1451 [master] Output possible values of log level

Back to archive index

SHIMODA Piro Hiroshi null+****@clear*****
Mon Oct 6 17:58:58 JST 2014


SHIMODA "Piro" Hiroshi	2014-10-06 17:58:58 +0900 (Mon, 06 Oct 2014)

  New Revision: 21d145118c3ce3bc7fe30e2b52e08a7480a58890
  https://github.com/droonga/droonga-engine/commit/21d145118c3ce3bc7fe30e2b52e08a7480a58890

  Message:
    Output possible values of log level

  Modified files:
    bin/droonga-engine-configure

  Modified: bin/droonga-engine-configure (+4 -1)
===================================================================
--- bin/droonga-engine-configure    2014-10-06 13:27:22 +0900 (f72a94e)
+++ bin/droonga-engine-configure    2014-10-06 17:58:58 +0900 (5155581)
@@ -23,6 +23,7 @@ require "droonga/path"
 require "droonga/command/droonga_engine"
 require "droonga/safe_file_writer"
 require "droonga/service_installation"
+require "droonga/logger"
 
 options = {
   :quiet => nil,
@@ -178,7 +179,9 @@ if options[:reset_config]
   if configuration.have_given_log_level? or options[:quiet]
     log_level = configuration.log_level
   else
-    log_level = input("log level", configuration.log_level)
+    levels = Droonga::Logger::Level::LABELS
+    levels_label = levels.join(",")
+    log_level = input("log level (#{levels_label})", configuration.log_level)
   end
 
   new_configuration = {
-------------- next part --------------
HTML����������������������������...
다운로드 



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