summaryrefslogtreecommitdiff
path: root/cloudinit/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/log.py')
-rw-r--r--cloudinit/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/log.py b/cloudinit/log.py
index c247eb9e..5fcb77ef 100644
--- a/cloudinit/log.py
+++ b/cloudinit/log.py
@@ -56,7 +56,7 @@ def setupBasicLogging():
cfile = logging.FileHandler('/var/log/cloud-init.log')
cfile.setFormatter(logging.Formatter(DEF_CON_FORMAT))
cfile.setLevel(DEBUG)
- root.addHandle(cfile)
+ root.addHandler(cfile)
except (IOError, OSError):
# Likely that u can't write to that file...
# Make console now have DEBUG??