[Groonga-commit] droonga/fluent-plugin-droonga at 0c902c8 [master] Better trace logging for watch_schema

Back to archive index

Yoji Shidara null+****@clear*****
Thu Nov 7 16:14:12 JST 2013


Yoji Shidara	2013-11-07 16:14:12 +0900 (Thu, 07 Nov 2013)

  New Revision: 0c902c88ef20bea6cf474b1d2b16f3ae04cecbe5
  https://github.com/droonga/fluent-plugin-droonga/commit/0c902c88ef20bea6cf474b1d2b16f3ae04cecbe5

  Message:
    Better trace logging for watch_schema

  Modified files:
    lib/droonga/watch_schema.rb

  Modified: lib/droonga/watch_schema.rb (+7 -3)
===================================================================
--- lib/droonga/watch_schema.rb    2013-11-07 15:18:35 +0900 (4d50805)
+++ lib/droonga/watch_schema.rb    2013-11-07 16:14:12 +0900 (3d3f9d0)
@@ -25,12 +25,12 @@ module Droonga
 
     def ensure_created
       if @context["Keyword"]
-        $log.trace "[#{Process.pid}] Watch tables exists. Skipping creation"
+        $log.trace "#{log_tag} skip table creation"
         return
       end
-      $log.trace "[#{Process.pid}] Creating Watch tables"
+      $log.trace "#{log_tag} ensure_tables: start"
       ensure_tables
-      $log.trace "[#{Process.pid}] Created Watch tables"
+      $log.trace "#{log_tag} ensure_tables: done"
     end
 
     private
@@ -80,5 +80,9 @@ module Droonga
         end
       end
     end
+
+    def log_tag
+      "[#{Process.ppid}][#{Process.pid}] watch_schema"
+    end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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