Commit c1799c50 authored by Michał Woźniak's avatar Michał Woźniak
Browse files

WIP #71: alt-fetch uses self.log()

parent 226eb06b
......@@ -87,7 +87,7 @@
}
// debug log
console.log(`Samizdat: fetching from alternative endpoints:\n ${useEndpoints.join('\n ')}`)
self.log(config.name, `fetching from alternative endpoints:\n ${useEndpoints.join('\n ')}`)
return Promise.any(
useEndpoints.map(
......@@ -100,7 +100,7 @@
throw new Error('HTTP Error: ' + response.status + ' ' + response.statusText);
}
// all good, it seems
console.log("(COMMIT_UNKNOWN) Fetched:", response.url);
self.log(config.name, "fetched:", response.url);
// we need to create a new Response object
// with all the headers added explicitly,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment