diff options
author | Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com> | 2018-05-31 16:59:54 +0200 |
---|---|---|
committer | Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com> | 2018-05-31 16:59:54 +0200 |
commit | e08e7c43c85fa04dc78a1fcf8a11ab877a78dfb9 (patch) | |
tree | 30fd13084546d7c2cb0d495a9003f57e03c9dc3c /sdnvpn/lib/logutil.py | |
parent | 1fc59dc868766cc845ecf2a2b7f1fef853d2d7e5 (diff) |
Fix the logging to be compatible with functest
Change-Id: I62b432497175e79bcf2cd241be54d8a7f5db2799
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Diffstat (limited to 'sdnvpn/lib/logutil.py')
-rw-r--r-- | sdnvpn/lib/logutil.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sdnvpn/lib/logutil.py b/sdnvpn/lib/logutil.py deleted file mode 100644 index 3765734..0000000 --- a/sdnvpn/lib/logutil.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -# -# Copyright (c) 2018 All rights reserved -# This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -import logging -import os.path - -from xtesting.core import feature - - -def getLogger(module_name): - logger = logging.getLogger(module_name) - log_file = "{}/{}.log".format("/var/lib/xtesting/results", "bgpvpn") - if not os.path.exists(log_file): - open(log_file, 'w+') - feature.Feature.configure_logger(logger, log_file) - return logger |