Skip to content

Commit

Permalink
jobs.py: enable logging
Browse files Browse the repository at this point in the history
Useful to get the debug output from commands.ssh()

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Sep 13, 2024
1 parent a33fa15 commit 65e2d91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import argparse
import json
import logging
import subprocess
import sys
from lib.commands import ssh
Expand Down Expand Up @@ -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")
subparsers = parser.add_subparsers(dest="action", metavar="action")
subparsers.required = True
Expand Down

0 comments on commit 65e2d91

Please sign in to comment.