From fc1a0fcd6689d373a133039908ef25482204e3d6 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 11 Sep 2024 18:09:23 +0200 Subject: [PATCH] jobs.py: enable logging Useful to get the debug output from commands.ssh() Signed-off-by: Yann Dirson --- jobs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jobs.py b/jobs.py index abe9e673..ac9eeb49 100755 --- a/jobs.py +++ b/jobs.py @@ -2,6 +2,7 @@ import argparse import json +import logging import subprocess import sys from lib.commands import ssh @@ -712,6 +713,7 @@ def action_run(args): sys.exit(1) def main(): + logging.basicConfig(format='[%(levelname)s] %(message)s', level=logging.DEBUG) parser = argparse.ArgumentParser(description="Manage test jobs") parser.add_argument("-v", "--host-version", help="host version to match VM filters.") subparsers = parser.add_subparsers(dest="action", metavar="action")