From bcaa16409d7db7bc13456f8df47688e9e6f4f5ed Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sun, 17 Jun 2012 00:15:04 -0700 Subject: Log handler + info that is about to be called --- cloudinit/handlers/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cloudinit/handlers') diff --git a/cloudinit/handlers/__init__.py b/cloudinit/handlers/__init__.py index d3374666..c6f2119c 100644 --- a/cloudinit/handlers/__init__.py +++ b/cloudinit/handlers/__init__.py @@ -104,7 +104,9 @@ def run_part(mod, data, ctype, filename, payload, frequency): except: mod_ver = 1 try: - if mod_ver and mod_ver >= 2: + LOG.debug("Calling handler %s (%s, %s, %s) with frequency %s", + mod, ctype, filename, mod_ver, frequency) + if mod_ver >= 2: # Treat as v. 2 which does get a frequency mod.handle_part(data, ctype, filename, payload, frequency) else: -- cgit v1.2.3