aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2015-10-19 18:34:53 +0100
committerSteve McIntyre <steve.mcintyre@linaro.org>2015-10-19 18:34:53 +0100
commitc3709804a582aa86dfdea3e8151605489c0c5e77 (patch)
tree35f11c9d4a6f487597baa3c7527f529358c73a05 /util.py
parente187fbef8993bad6926f67420e8a678186678fd5 (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.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/util.py b/util.py
index e71e907..9b30325 100644
--- a/util.py
+++ b/util.py
@@ -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