Skip to content

Commit

Permalink
⭐ set logging level of luigi
Browse files Browse the repository at this point in the history
  • Loading branch information
Hi-king committed May 8, 2022
1 parent 019f15f commit ef4f870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gokart/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def build(task: TaskOnKart, return_value: bool = True, reset_register: bool = Tr
if reset_register:
_reset_register()
with LoggerConfig(level=log_level):
result = luigi.build([task], local_scheduler=True, detailed_summary=True, **env_params)
result = luigi.build([task], local_scheduler=True, detailed_summary=True, log_level=logging.getLevelName(log_level), **env_params)
if result.status == luigi.LuigiStatusCode.FAILED:
raise GokartBuildError(result.summary_text)
return _get_output(task) if return_value else None

0 comments on commit ef4f870

Please sign in to comment.