MCPcopy
hub / github.com/steel-dev/steel-browser / updateLog

Function updateLog

api/src/utils/logging.ts:1–17  ·  view source on GitHub ↗
(logUrl: string, log: any)

Source from the content-addressed store, hash-verified

1export const updateLog = async (logUrl: string, log: any) => {
2 try {
3 const response = await fetch(logUrl, {
4 method: "PUT",
5 headers: {
6 "Content-Type": "application/json",
7 },
8 body: JSON.stringify(log),
9 });
10 if (!response.ok) {
11 const error = await response.text();
12 console.error("Failed to update log", error);
13 }
14 } catch (e: unknown) {
15 console.error(e);
16 }
17};

Callers 4

handleScrapeFunction · 0.85
handleSearchFunction · 0.85
handleScreenshotFunction · 0.85
handlePDFFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected