File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -920,6 +920,12 @@ def cli_api_server(
920
920
" (default: a timestamped folder in the system temp directory)."
921
921
),
922
922
)
923
+ @click .option (
924
+ "--log_level" ,
925
+ type = LOG_LEVELS ,
926
+ default = "INFO" ,
927
+ help = "Optional. Set the logging level" ,
928
+ )
923
929
@click .option (
924
930
"--verbosity" ,
925
931
type = LOG_LEVELS ,
@@ -954,7 +960,7 @@ def cli_deploy_cloud_run(
954
960
trace_to_cloud : bool ,
955
961
with_ui : bool ,
956
962
adk_version : str ,
957
- verbosity : str = "WARNING" ,
963
+ verbosity : Optional [ str ] ,
958
964
reload : bool = True ,
959
965
allow_origins : Optional [list [str ]] = None ,
960
966
log_level : Optional [str ] = None ,
@@ -975,7 +981,14 @@ def cli_deploy_cloud_run(
975
981
976
982
adk deploy cloud_run --project=[project] --region=[region] path/to/my_agent
977
983
"""
978
- log_level = log_level or verbosity
984
+ if verbosity :
985
+ click .secho (
986
+ "WARNING: The --verbosity option is deprecated. Use --log_level"
987
+ " instead." ,
988
+ fg = "yellow" ,
989
+ err = True ,
990
+ )
991
+
979
992
session_service_uri = session_service_uri or session_db_url
980
993
artifact_service_uri = artifact_service_uri or artifact_storage_uri
981
994
try :
You can’t perform that action at this time.
0 commit comments