Skip to content
Merged
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
10 changes: 10 additions & 0 deletions veadk/cli/cli_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import logging
from functools import wraps

import click
Expand Down Expand Up @@ -139,5 +140,14 @@ async def wrapper(*args, **kwargs) -> ADKRunner:
# from Google ADK and Litellm
if "--log_level" not in extra_args:
extra_args.extend(["--log_level", "ERROR"])
logging.basicConfig(level=logging.ERROR, force=True)

if "--log_level" in extra_args:
logging.basicConfig(
level=getattr(
logging, extra_args[extra_args.index("--log_level") + 1].upper()
),
force=True,
)

cli_web.main(args=extra_args, standalone_mode=False)