summaryrefslogtreecommitdiff
path: root/cloudinit/cloud.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-18 17:28:25 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-18 17:28:25 -0700
commit24eab2046f2daaaa1ddb09421949430fa18ba28e (patch)
tree90cbcdee7915764a2b82cec09e1dc90060b9b5e6 /cloudinit/cloud.py
parent5e0bf173c870f0f732d68d9db338f40d1d0a6a5a (diff)
downloadvyos-cloud-init-24eab2046f2daaaa1ddb09421949430fa18ba28e.tar.gz
vyos-cloud-init-24eab2046f2daaaa1ddb09421949430fa18ba28e.zip
When logging is 'cycled' ensure that we call the logging reset routine first.
Diffstat (limited to 'cloudinit/cloud.py')
-rw-r--r--cloudinit/cloud.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/cloud.py b/cloudinit/cloud.py
index a2a5cfdb..90679202 100644
--- a/cloudinit/cloud.py
+++ b/cloudinit/cloud.py
@@ -50,6 +50,7 @@ class Cloud(object):
# it is typically useful to cause the logging to be
# setup again.
def cycle_logging(self):
+ logging.resetLogging()
logging.setupLogging(self.cfg)
@property