X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ftelemetry%2Fexecutor.py;h=4d335c187de1d654e66add373450c5abc0ca4bc0;hp=75db4b6a40ee03889c63c7f3898360ee1a3dbb4d;hb=d743892c7ea9dcae6038660b57b94c9578f7f7f4;hpb=d255d2545ee6cdc871bc35314fad72c3c48b225b diff --git a/resources/tools/telemetry/executor.py b/resources/tools/telemetry/executor.py index 75db4b6a40..4d335c187d 100644 --- a/resources/tools/telemetry/executor.py +++ b/resources/tools/telemetry/executor.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -20,6 +20,7 @@ import sys from .parser import Parser from .serializer import Serializer +from .constants import Constants class Executor: @@ -103,5 +104,5 @@ class ExecutorError(Exception): """ super().__init__() self.message = message - getLogger(__name__).error(message) - sys.exit(1) + getLogger("console_stderr").error(message) + sys.exit(Constants.err_telemetry_bundle)