Skip to content

Commit

Permalink
deps: turn on logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Oct 12, 2023
1 parent 28e3d43 commit 00a2e82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cwltool/loghandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ def configure_logging(
rdflib_logger = logging.getLogger("rdflib.term")
rdflib_logger.addHandler(stderr_handler)
rdflib_logger.setLevel(logging.ERROR)
deps_logger = logging.getLogger("galaxy.tool_util.deps")
if quiet:
# Silence STDERR, not an eventual provenance log file
stderr_handler.setLevel(logging.WARN)
if debug:
# Increase to debug for both stderr and provenance log file

base_logger.setLevel(logging.DEBUG)
stderr_handler.setLevel(logging.DEBUG)
rdflib_logger.setLevel(logging.DEBUG)
deps_logger.setLevel(logging.DEBUG)
if not quiet and not debug:
deps_logger.setLevel(logging.INFO)
fmtclass = coloredlogs.ColoredFormatter if enable_color else logging.Formatter
formatter = fmtclass("%(levelname)s %(message)s")
if timestamps:
Expand Down

0 comments on commit 00a2e82

Please sign in to comment.