X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fbackupninja.git;a=blobdiff_plain;f=src%2Flib%2Fbackupninja%2Fhandlers%2F__init__.py;fp=src%2Flib%2Fbackupninja%2Fhandlers%2F__init__.py;h=7603afd0a1bfbe3c29cb1bed2c101cfe9514dcd9;hp=990c4717a860d1c48d5c02c4716f37d5fca17b5c;hb=52ce78d1bf9e1344b9fc27cae81c158580579b34;hpb=5da4fb89ab2bdad92435be2b4ba38061b2834a36 diff --git a/src/lib/backupninja/handlers/__init__.py b/src/lib/backupninja/handlers/__init__.py index 990c471..7603afd 100644 --- a/src/lib/backupninja/handlers/__init__.py +++ b/src/lib/backupninja/handlers/__init__.py @@ -50,12 +50,14 @@ def create_handler(ty, conf): modname = 'backupninja.handlers.%s' % ty # Load the handler if it is not loaded yet if not modname in sys.modules: + log.debug('Loading handler for type "%s"', ty) try: __import__(modname, globals(), locals(), []) except ImportError, e: # Add some extra info, since the default exception does not # show the full module name. raise ImportError('Cannot load module %s: %s' % (modname, e)) + log.debug('Loaded handler for type "%s" from "%s"', ty, sys.modules[modname].__file__) # Get the module from the module table module = sys.modules[modname]