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 11, 2023
1 parent e9f166c commit 3c3c19d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cwltool/loghandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,20 @@ def configure_logging(
rdflib_logger = logging.getLogger("rdflib.term")
rdflib_logger.addHandler(stderr_handler)
rdflib_logger.setLevel(logging.ERROR)
conda_logger = logging.getLogger("galaxy.tool_util.deps.conda_util")
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)
if conda_logger:
conda_logger.setLevel(logging.DEBUG)
if not quiet and not debug and conda_logger:
conda_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 3c3c19d

Please sign in to comment.