Skip to content

Commit 5d7db92

Browse files
committed
Add verbose logging to galaxy test output handling problems.
1 parent 1e7f052 commit 5d7db92

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

planemo/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import sys
3+
import traceback
34

45
import click
56

@@ -44,10 +45,12 @@ def log(self, msg, *args):
4445
msg %= args
4546
click.echo(msg, file=sys.stderr)
4647

47-
def vlog(self, msg, *args):
48+
def vlog(self, msg, *args, **kwds):
4849
"""Logs a message to stderr only if verbose is enabled."""
4950
if self.verbose:
5051
self.log(msg, *args)
52+
if kwds.get("exception", False):
53+
traceback.print_exc(file=sys.stderr)
5154

5255
@property
5356
def workspace(self):

planemo/galaxy_test/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def run_in_config(ctx, config, **kwds):
9292
handle.write(build_report.build_report(test_data, report_type=kw_name))
9393

9494
except Exception:
95-
pass
95+
ctx.vlog("Problem producing test output.", exception=True)
9696

9797
__handle_summary(
9898
test_results,

0 commit comments

Comments
 (0)