summaryrefslogtreecommitdiff
path: root/cloudinit/reporting
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-08-07 16:06:36 -0500
committerScott Moser <smoser@ubuntu.com>2015-08-07 16:06:36 -0500
commitb39070772aba62d68fea14603b8d657bbb529d5e (patch)
tree87d20d1fb8c047cbe16ed1ec1dfb88c5c3f02999 /cloudinit/reporting
parent9975e06338bb646dbefe0749f7a8f88974d44d24 (diff)
downloadvyos-cloud-init-b39070772aba62d68fea14603b8d657bbb529d5e.tar.gz
vyos-cloud-init-b39070772aba62d68fea14603b8d657bbb529d5e.zip
reporting: fix logging reproter and tests
Diffstat (limited to 'cloudinit/reporting')
-rw-r--r--cloudinit/reporting/handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/reporting/handlers.py b/cloudinit/reporting/handlers.py
index 1343311f..172679cc 100644
--- a/cloudinit/reporting/handlers.py
+++ b/cloudinit/reporting/handlers.py
@@ -35,7 +35,7 @@ class LogHandler(ReportingHandler):
else:
input_level = level
try:
- level = gettattr(logging, level.upper())
+ level = getattr(logging, level.upper())
except:
LOG.warn("invalid level '%s', using WARN", input_level)
level = logging.WARN