[Groonga-commit] ranguba/rroonga at 7ff99a7 [master] Support GRN_LOG_PID

Back to archive index

Masafumi Yokoyama null+****@clear*****
Mon Dec 12 21:29:35 JST 2016


Masafumi Yokoyama	2016-12-12 21:29:35 +0900 (Mon, 12 Dec 2016)

  New Revision: 7ff99a7f028140c3dddb4125094095a70faa7e21
  https://github.com/ranguba/rroonga/commit/7ff99a7f028140c3dddb4125094095a70faa7e21

  Merged 6ac2797: Merge pull request #142 from ranguba/support-grn-log-pid

  Message:
    Support GRN_LOG_PID

  Modified files:
    ext/groonga/rb-grn-logger.c
    lib/groonga/logger.rb
    test/test-logger.rb

  Modified: ext/groonga/rb-grn-logger.c (+1 -0)
===================================================================
--- ext/groonga/rb-grn-logger.c    2016-12-12 19:40:33 +0900 (b39de5b)
+++ ext/groonga/rb-grn-logger.c    2016-12-12 21:29:35 +0900 (8ff4f0a)
@@ -650,6 +650,7 @@ rb_grn_init_logger (VALUE mGrn)
     DEFINE_FLAG(TITLE);
     DEFINE_FLAG(MESSAGE);
     DEFINE_FLAG(LOCATION);
+    DEFINE_FLAG(PID);
 #undef DEFINE_FLAG
 
     rb_cGrnCallbackLogger =

  Modified: lib/groonga/logger.rb (+1 -0)
===================================================================
--- lib/groonga/logger.rb    2016-12-12 19:40:33 +0900 (d97f67f)
+++ lib/groonga/logger.rb    2016-12-12 21:29:35 +0900 (7a766d7)
@@ -23,6 +23,7 @@ module Groonga
         TITLE    => "title",
         MESSAGE  => "message",
         LOCATION => "location",
+        PID => "pid",
       }
 
       class << self

  Modified: test/test-logger.rb (+6 -0)
===================================================================
--- test/test-logger.rb    2016-12-12 19:40:33 +0900 (7fa0c07)
+++ test/test-logger.rb    2016-12-12 21:29:35 +0900 (24a90a9)
@@ -137,4 +137,10 @@ class LoggerTest < Test::Unit::TestCase
     Groonga::Logger.log("Hello")
     assert_not_equal([], Dir.glob("#{@log_path}.*"))
   end
+
+  sub_test_case "Flags" do
+    test "pid" do
+      assert_const_defined(Groonga::Logger::Flags, :PID)
+    end
+  end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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