[Groonga-commit] droonga/fluent-plugin-droonga at 073539a [master] Report which plugin is currently tried to be loaded

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Feb 13 15:17:01 JST 2014


YUKI Hiroshi	2014-02-13 15:17:01 +0900 (Thu, 13 Feb 2014)

  New Revision: 073539a280e48943c7ce6f3d10c5a25fde047b62
  https://github.com/droonga/fluent-plugin-droonga/commit/073539a280e48943c7ce6f3d10c5a25fde047b62

  Message:
    Report which plugin is currently tried to be loaded

  Modified files:
    lib/droonga/plugin_loader.rb

  Modified: lib/droonga/plugin_loader.rb (+5 -2)
===================================================================
--- lib/droonga/plugin_loader.rb    2014-02-13 14:27:25 +0900 (ca197a9)
+++ lib/droonga/plugin_loader.rb    2014-02-13 15:17:01 +0900 (3a7c2e1)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2013 Droonga Project
+# Copyright (C) 2013-2014 Droonga Project
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -36,6 +36,7 @@ module Droonga
             relative_plugin_path =
               plugin_path.relative_path_from(Pathname(load_path))
             require_path = relative_plugin_path.to_s.gsub(/\.rb\z/, "")
+            $log.info("#{self.name}: loading: #{require_path}")
             require require_path
           end
         end
@@ -49,7 +50,9 @@ module Droonga
 
     def load
       return if @type == "metadata"
-      require "droonga/plugin/#{@type}/#{@name}"
+      path = "droonga/plugin/#{@type}/#{@name}"
+      $log.info("#{self.class.name}: loading: #{path}")
+      require path
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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