[Groonga-commit] droonga/droonga-engine at 0b3eb65 [buffered-forward] Output more trace logs for CRUD operations

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Dec 24 16:58:18 JST 2014


YUKI Hiroshi	2014-12-24 16:58:18 +0900 (Wed, 24 Dec 2014)

  New Revision: 0b3eb655fed528def1ac7e5f319063daded78d85
  https://github.com/droonga/droonga-engine/commit/0b3eb655fed528def1ac7e5f319063daded78d85

  Message:
    Output more trace logs for CRUD operations

  Modified files:
    lib/droonga/plugins/crud.rb

  Modified: lib/droonga/plugins/crud.rb (+7 -0)
===================================================================
--- lib/droonga/plugins/crud.rb    2014-12-22 19:56:41 +0900 (2357fab)
+++ lib/droonga/plugins/crud.rb    2014-12-24 16:58:18 +0900 (eae5b02)
@@ -84,11 +84,14 @@ module Droonga
         end
 
         def handle(message)
+          logger.trace("handle: start")
           process_add(message.request)
+          logger.trace("handle: done")
         end
 
         private
         def process_add(request)
+          logger.trace("process_add: start")
           raise MissingTableParameter.new unless request.include?("table")
 
           table = @context[request["table"]]
@@ -101,10 +104,13 @@ module Droonga
           end
 
           add_record(table, request)
+
+          logger.trace("process_add: done")
           true
         end
 
         def add_record(table, request)
+          logger.trace("add_record: start")
           record = nil
           if table.support_key?
             key = normalize_record_key(request["key"], table)
@@ -126,6 +132,7 @@ module Droonga
               raise UnknownColumn.new(column, request["table"], request)
             end
           end
+          logger.trace("add_record: done")
         end
 
         def normalize_record_key(key, table)
-------------- next part --------------
HTML����������������������������...
Download 



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