From da0b9275ca0a4649aef420897b28dd2c49dddc7a Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 18 Jun 2010 14:14:15 -0400 Subject: fix trace due to lack of 'import traceback'. change error message to be debug (with traceback). The exception is still raised, but no reason for the whole traceback to be on error --- cloudinit/CloudConfig/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cloudinit/CloudConfig') diff --git a/cloudinit/CloudConfig/__init__.py b/cloudinit/CloudConfig/__init__.py index 878335e4..c0d8928c 100644 --- a/cloudinit/CloudConfig/__init__.py +++ b/cloudinit/CloudConfig/__init__.py @@ -20,6 +20,7 @@ import yaml import cloudinit import cloudinit.util as util import sys +import traceback per_instance="once-per-instance" per_always="always" @@ -52,6 +53,6 @@ class CloudConfig(): self.cloud.sem_and_run("config-" + name, freq, handler, [ name, self.cfg, self.cloud, cloudinit.log, args ]) except: - cloudinit.log.error(traceback.format_exc()) + cloudinit.log.debug(traceback.format_exc()) raise -- cgit v1.2.3