Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/google/adk/cli/cli_tools_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@ def wrapper(*args, **kwargs):
),
callback=validate_exclusive,
)
@click.option(
"--log_level",
type=LOG_LEVELS,
default="INFO",
help="Optional. Set the logging level",
)
@click.argument(
"agent",
type=click.Path(
Expand All @@ -477,6 +483,7 @@ def cli_run(
session_id: Optional[str],
replay: Optional[str],
resume: Optional[str],
log_level: str = "INFO",
session_service_uri: Optional[str] = None,
artifact_service_uri: Optional[str] = None,
memory_service_uri: Optional[str] = None,
Expand All @@ -489,7 +496,7 @@ def cli_run(

adk run path/to/my_agent
"""
logs.log_to_tmp_folder()
logs.log_to_tmp_folder(level=getattr(logging, log_level.upper()))

# Validation warning for memory_service_uri (not supported for adk run)
if memory_service_uri:
Expand Down