We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39a382d commit 6710f00Copy full SHA for 6710f00
veadk/cli/cli_web.py
@@ -12,6 +12,7 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+import logging
16
from functools import wraps
17
18
import click
@@ -139,5 +140,14 @@ async def wrapper(*args, **kwargs) -> ADKRunner:
139
140
# from Google ADK and Litellm
141
if "--log_level" not in extra_args:
142
extra_args.extend(["--log_level", "ERROR"])
143
+ logging.basicConfig(level=logging.ERROR, force=True)
144
+
145
+ if "--log_level" in extra_args:
146
+ logging.basicConfig(
147
+ level=getattr(
148
+ logging, extra_args[extra_args.index("--log_level") + 1].upper()
149
+ ),
150
+ force=True,
151
+ )
152
153
cli_web.main(args=extra_args, standalone_mode=False)
0 commit comments