summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-06-18 14:14:15 -0400
committerScott Moser <smoser@ubuntu.com>2010-06-18 14:14:15 -0400
commitda0b9275ca0a4649aef420897b28dd2c49dddc7a (patch)
tree927505183a6b43086dd0fa88d0fb5bd4d99a555a /cloudinit/CloudConfig
parent789fdb0cb6514859630b533cb53289f30c4426fe (diff)
downloadvyos-cloud-init-da0b9275ca0a4649aef420897b28dd2c49dddc7a.tar.gz
vyos-cloud-init-da0b9275ca0a4649aef420897b28dd2c49dddc7a.zip
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
Diffstat (limited to 'cloudinit/CloudConfig')
-rw-r--r--cloudinit/CloudConfig/__init__.py3
1 files changed, 2 insertions, 1 deletions
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