diff --git a/packages/beacon-node/src/execution/builder/http.ts b/packages/beacon-node/src/execution/builder/http.ts index 81a32e1313ad..9c80a96f79a5 100644 --- a/packages/beacon-node/src/execution/builder/http.ts +++ b/packages/beacon-node/src/execution/builder/http.ts @@ -50,7 +50,7 @@ export class ExecutionBuilderHttp implements IExecutionBuilder { ) { const baseUrl = opts.urls[0]; if (!baseUrl) throw Error("No Url provided for executionBuilder"); - logger?.info("External builder", {urls: opts.urls.map(toSafePrintableUrl).toString()}); + logger?.info("External builder", {url: toSafePrintableUrl(baseUrl)}); this.api = getClient( { baseUrl, diff --git a/packages/utils/src/url.ts b/packages/utils/src/url.ts index 16456dbe3c40..0f55994e69fd 100644 --- a/packages/utils/src/url.ts +++ b/packages/utils/src/url.ts @@ -26,7 +26,7 @@ export function toSafePrintableUrl(urlStr: string): string { try { return new URL(urlStr).origin; } catch (_) { - // Best effort to sanitize if an invalid URL is provided + // Best effort to sanitize value if an invalid URL is provided return urlStr.replace(/(.*?:\/\/|.*?:\/)?(.*?:.*?@)/, "$1"); } }