diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-10-19 18:34:53 +0100 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-10-19 18:34:53 +0100 |
commit | c3709804a582aa86dfdea3e8151605489c0c5e77 (patch) | |
tree | 35f11c9d4a6f487597baa3c7527f529358c73a05 /util.py | |
parent | e187fbef8993bad6926f67420e8a678186678fd5 (diff) |
Update config handling for logging level, and add test
Set the default to CRITICAL only, to simplify code. Add check for the
specified logging level, and a unit test for that.
Change-Id: I3ffa467f001dfdfb840f312bf0df8265aac58299
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -6,11 +6,6 @@ class VlanUtil: """VLANd utility functions""" def set_logging_level(self, level): - - # Set up logging and maybe go quiet... - if level is None: - level = "CRITICAL" - loglevel = logging.CRITICAL if level == "ERROR": loglevel = logging.ERROR |