Skip to content

Commit

Permalink
Log to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
vladsavelyev committed Apr 16, 2024
1 parent 1f9bd36 commit fc1c3fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion multiqc/multiqc.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def run(

if clean_up:
# Move the log file into the data directory
log.move_tmp_log(logger)
log.move_tmp_log()

return RunResult(sys_exit_code=sys_exit_code)

Expand Down
6 changes: 3 additions & 3 deletions multiqc/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def init_log(logger, quiet: bool, verbose: int, no_ansi: bool = False):

global rich_console
rich_console = rich.console.Console(
stderr=True,
stderr=False,
highlight=False,
force_terminal=util_functions.force_term_colors(),
color_system=None if no_ansi else "auto",
Expand Down Expand Up @@ -65,7 +65,7 @@ def init_log(logger, quiet: bool, verbose: int, no_ansi: bool = False):
no_ansi = True

# Set up the console logging stream
console = logging.StreamHandler()
console = logging.StreamHandler(sys.stdout)
console.setLevel(getattr(logging, log_level))
level_styles = coloredlogs.DEFAULT_LEVEL_STYLES
level_styles["debug"] = {"faint": True}
Expand Down Expand Up @@ -94,7 +94,7 @@ def init_log(logger, quiet: bool, verbose: int, no_ansi: bool = False):
logger.addHandler(file_handler)


def move_tmp_log(logger):
def move_tmp_log():
"""Move the temporary log file to the MultiQC data directory
if it exists."""

Expand Down

0 comments on commit fc1c3fd

Please sign in to comment.