aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/OpenStack
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/OpenStack')
-rwxr-xr-xtestcases/OpenStack/vPing/vping.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testcases/OpenStack/vPing/vping.py b/testcases/OpenStack/vPing/vping.py
index 168ed4f8f..08579e105 100755
--- a/testcases/OpenStack/vPing/vping.py
+++ b/testcases/OpenStack/vPing/vping.py
@@ -33,8 +33,8 @@ parser.add_argument("-m", "--mode", default='ssh',
args = parser.parse_args()
-""" logging configuration """
-logger = ft_logger.Logger("vping_userdata").getLogger()
+""" logging declaration """
+logger = None
def main():
@@ -43,6 +43,9 @@ def main():
else:
case = 'vping_userdata'
+ global logger
+ logger = ft_logger.Logger(case).getLogger()
+
util.init(logger)
util.check_repo_exist()