Skip to content

Commit

Permalink
renable logging
Browse files Browse the repository at this point in the history
  • Loading branch information
TyberiusPrime committed Jul 17, 2024
1 parent 8ed2b8d commit 7245afe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion python/pypipegraph2/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def log_failed_job(self, job_id, error):
f"\n\t(Error directory not configured - no extended error log)\n"
f"\tFailed after {job.run_time:.2}s.\n"
)
if stacks is not None:
if stacks is not None and self.print_failures:
if self.job_graph.run_mode is RunMode.CONSOLE:
console.print(
stacks._format_rich_traceback_fallback(False, True).replace(
Expand Down
4 changes: 0 additions & 4 deletions python/pypipegraph2/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,18 @@ def flatten_jobs(j):


def log_warning(msg):
return
logger.opt(depth=1).warning(msg)


def log_error(msg):
return
logger.opt(depth=1).error(msg)


def log_info(msg):
return
logger.opt(depth=1).info(msg)


def log_debug(msg):
return
logger.opt(depth=1).debug(msg)


Expand Down

0 comments on commit 7245afe

Please sign in to comment.