Fix on removing error message on 'exec' error

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
Ulysses Souza 2021-03-17 17:49:15 -03:00
parent 5b7851f55b
commit 5ec8af582c
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ def get_filtered_args(args):
def exit_with_metrics(command, log_msg=None, status=Status.SUCCESS, exit_code=1):
if log_msg:
if log_msg and command != 'exec':
if not exit_code:
log.info(log_msg)
else: