From 12107e01eb9b6f971e3ae67bb40f86ab47cdcf6c Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 18 May 2018 12:00:21 -0400 Subject: [PATCH] Better default logging config for CWL development. --- planemo/cli.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/planemo/cli.py b/planemo/cli.py index 9b0805ada..a6d0b6067 100644 --- a/planemo/cli.py +++ b/planemo/cli.py @@ -271,6 +271,12 @@ def planemo(ctx, config, directory, verbose, configure_logging=True): }, }, 'loggers': { + # Suppress CWL is beta warning, for Planemo purposes - it is absolutely not. + 'galaxy.tools.parser.factory': { + 'handlers': ['console'], + 'propagate': False, + 'level': 'ERROR' if not verbose else "DEBUG", + }, 'galaxy.tools.deps.commands': { 'handlers': ['console'], 'propagate': False, @@ -281,6 +287,20 @@ def planemo(ctx, config, directory, verbose, configure_logging=True): 'propagate': False, 'level': 'INFO' if not verbose else "DEBUG", }, + # @jmchilton + # I'm fixing up Planemo's lint functionality for CWL and I keep seeing this for the + # schema metadata stuff (e.g. in the workflows repo). "rdflib.term WARNING: + # http://schema.org/docs/!DOCTYPE html does not look like a valid URI, trying to + # serialize this will break.". I'm going to suppress this warning I think, or are the + # examples wrong and should declare their namespaces differently in some way? + # @mr-c + # That particular warning is worth suppressing. A PR to silence it permanently would be very welcome! + # https://github.com/RDFLib/rdflib/blob/master/rdflib/term.py#L225 + 'rdflib.term': { + 'handlers': ['console'], + 'propagate': False, + 'level': 'ERROR' if not verbose else "DEBUG", + } }, 'root': { 'handlers': ['console'],