Skip to content

Commit

Permalink
Merge pull request #830 from jmchilton/cwl_logging
Browse files Browse the repository at this point in the history
Better default logging config for CWL development.
  • Loading branch information
jmchilton committed May 19, 2018
2 parents 6de6214 + 12107e0 commit 0a9a26b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions planemo/cli.py
Expand Up @@ -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,
Expand All @@ -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'],
Expand Down

0 comments on commit 0a9a26b

Please sign in to comment.