Skip to content

Commit 71fef20

Browse files
committed
Only log used builder URL
1 parent 876063f commit 71fef20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/beacon-node/src/execution/builder/http.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class ExecutionBuilderHttp implements IExecutionBuilder {
5050
) {
5151
const baseUrl = opts.urls[0];
5252
if (!baseUrl) throw Error("No Url provided for executionBuilder");
53-
logger?.info("External builder", {urls: opts.urls.map(toSafePrintableUrl).toString()});
53+
logger?.info("External builder", {url: toSafePrintableUrl(baseUrl)});
5454
this.api = getClient(
5555
{
5656
baseUrl,

packages/utils/src/url.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function toSafePrintableUrl(urlStr: string): string {
2626
try {
2727
return new URL(urlStr).origin;
2828
} catch (_) {
29-
// Best effort to sanitize if an invalid URL is provided
29+
// Best effort to sanitize value if an invalid URL is provided
3030
return urlStr.replace(/(.*?:\/\/|.*?:\/)?(.*?:.*?@)/, "$1");
3131
}
3232
}

0 commit comments

Comments
 (0)