diff options
author | Scott Moser <smoser@brickies.net> | 2013-04-17 09:42:55 -0700 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2013-04-17 09:42:55 -0700 |
commit | 66ea1ae9599d27686db2510f3a079485ea8292c3 (patch) | |
tree | d927b3c0b3686e4dad9a20869f94202cd139392b /cloudinit | |
parent | b9c6f197b6865987e9cdd2cd71fa1a5a9dff11c5 (diff) | |
download | vyos-cloud-init-66ea1ae9599d27686db2510f3a079485ea8292c3.tar.gz vyos-cloud-init-66ea1ae9599d27686db2510f3a079485ea8292c3.zip |
add debug output to ccfg-merge-debug
Exeptions were being swallowed completely and no way to even see them
other than log.
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/log.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/log.py b/cloudinit/log.py index da6c2851..622c946c 100644 --- a/cloudinit/log.py +++ b/cloudinit/log.py @@ -44,13 +44,13 @@ NOTSET = logging.NOTSET DEF_CON_FORMAT = '%(asctime)s - %(filename)s[%(levelname)s]: %(message)s' -def setupBasicLogging(): +def setupBasicLogging(level=DEBUG): root = logging.getLogger() console = logging.StreamHandler(sys.stderr) console.setFormatter(logging.Formatter(DEF_CON_FORMAT)) - console.setLevel(DEBUG) + console.setLevel(level) root.addHandler(console) - root.setLevel(DEBUG) + root.setLevel(level) def flushLoggers(root): |