Permalink
Browse files

Add verbose logging to galaxy test output handling problems.

  • Loading branch information...
jmchilton committed Oct 12, 2015
1 parent 1e7f052 commit 5d7db92735e52229b5ae73f1d2b0b505a69e0298
Showing with 5 additions and 2 deletions.
  1. +4 −1 planemo/cli.py
  2. +1 −1 planemo/galaxy_test/actions.py
@@ -1,5 +1,6 @@
import os
import sys
import traceback

import click

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

def vlog(self, msg, *args):
def vlog(self, msg, *args, **kwds):
"""Logs a message to stderr only if verbose is enabled."""
if self.verbose:
self.log(msg, *args)
if kwds.get("exception", False):
traceback.print_exc(file=sys.stderr)

@property
def workspace(self):
@@ -92,7 +92,7 @@ def run_in_config(ctx, config, **kwds):
handle.write(build_report.build_report(test_data, report_type=kw_name))

except Exception:
pass
ctx.vlog("Problem producing test output.", exception=True)

__handle_summary(
test_results,

0 comments on commit 5d7db92

Please sign in to comment.