From 94b8a8efab25a105fa483e5f215228cd736d5407 Mon Sep 17 00:00:00 2001 From: vbot Date: Mon, 29 Jan 2024 15:31:52 +0100 Subject: [PATCH 1/2] Client/Proxy: use proper logging method --- src/lib_proxy/proxy_commands.ml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/lib_proxy/proxy_commands.ml b/src/lib_proxy/proxy_commands.ml index 00b559612293..fafda8a3632e 100644 --- a/src/lib_proxy/proxy_commands.ml +++ b/src/lib_proxy/proxy_commands.ml @@ -29,11 +29,15 @@ let group : Tezos_clic.group = title = "Commands querying proxy and light mode support"; } -let list_proxy_command_handler _ _ = - List.iter (fun (module Proxy : Registration.Proxy_sig) -> - Format.printf "%a@." Protocol_hash.pp Proxy.protocol_hash) - @@ Registration.get_all_registered () ; - Lwt_result_syntax.return_unit +let list_proxy_command_handler _ + (cctxt : #Tezos_client_base.Client_context.full) = + let open Lwt_result_syntax in + let*! () = + List.iter_s (fun (module Proxy : Registration.Proxy_sig) -> + cctxt#message "%a@." Protocol_hash.pp Proxy.protocol_hash) + @@ Registration.get_all_registered () + in + return_unit let list_env_command (flag : string) : _ Tezos_clic.command = let open Tezos_clic in -- GitLab From 8d2295b8e144c83e453bdf4c7411afafd9fd4d44 Mon Sep 17 00:00:00 2001 From: vbot Date: Mon, 29 Jan 2024 15:32:15 +0100 Subject: [PATCH 2/2] Client: disable default --better-errors to avoid /describe calls --- src/lib_client_base_unix/client_context_unix.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib_client_base_unix/client_context_unix.ml b/src/lib_client_base_unix/client_context_unix.ml index 549ece054d8f..babe0d1c3709 100644 --- a/src/lib_client_base_unix/client_context_unix.ml +++ b/src/lib_client_base_unix/client_context_unix.ml @@ -250,7 +250,7 @@ class unix_mockup ~base_dir ~mem_only ~mockup_env ~chain_id ~rpc_context method confirmations = None - method verbose_rpc_error_diagnostics = true + method verbose_rpc_error_diagnostics = false end class unix_proxy ~base_dir ?protocol ~chain ~block ~confirmations @@ -279,5 +279,5 @@ class unix_proxy ~base_dir ?protocol ~chain ~block ~confirmations method confirmations = confirmations - method verbose_rpc_error_diagnostics = true + method verbose_rpc_error_diagnostics = false end -- GitLab