From 71a661de85dc910c82c6769430232b555a86198a Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 16 Jun 2012 20:22:16 -0700 Subject: Update error messaging for when importing/registring a part-handler fails --- cloudinit/handlers/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cloudinit/handlers/__init__.py') diff --git a/cloudinit/handlers/__init__.py b/cloudinit/handlers/__init__.py index 0ef704f7..3944c661 100644 --- a/cloudinit/handlers/__init__.py +++ b/cloudinit/handlers/__init__.py @@ -141,7 +141,8 @@ def walker_handle_handler(pdata, _ctype, _filename, payload): handlers.register(mod) call_begin(mod, pdata['data'], frequency) except: - util.logexc(LOG, "Failed at registered python file: %s", modfname) + util.logexc(LOG, ("Failed at registering python file: %s" + " (part handler %s)"), modfname, curcount) def _extract_first_or_bytes(blob, size): -- cgit v1.2.3