Skip to content

Commit

Permalink
Quick hack for kedro run -v
Browse files Browse the repository at this point in the history
Signed-off-by: Nok <nok.lam.chan@quantumblack.com>
  • Loading branch information
noklam committed Feb 27, 2024
1 parent 65cf2a0 commit 2ec8bc1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kedro/framework/cli/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ def package(metadata: ProjectMetadata) -> None:
help=PARAMS_ARG_HELP,
callback=_split_params,
)
@click.option(
"-v",
"verbose",
type=click.UNPROCESSED,
is_flag=True,
default="",
)
def run( # noqa: PLR0913
tags: str,
env: str,
Expand All @@ -212,8 +219,13 @@ def run( # noqa: PLR0913
conf_source: str,
params: dict[str, Any],
namespace: str,
verbose: bool,
) -> None:
"""Run the pipeline."""
if verbose:
from kedro.framework.project import LOGGING
LOGGING.data["root"]["level"] = "DEBUG"
LOGGING.configure(LOGGING.data)

runner_obj = load_obj(runner or "SequentialRunner", "kedro.runner")
tuple_tags = tuple(tags)
Expand Down

0 comments on commit 2ec8bc1

Please sign in to comment.