File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ class AssetCache {
256
256
257
257
this . ensureDir ( ) ;
258
258
259
- debugAssets ( "[@ 11ty/eleventy-fetch] Writing to disk cache from %o" , this . source ) ;
259
+ debugAssets ( "[11ty/eleventy-fetch] Writing %o from %o" , contentPath , this . source ) ;
260
260
261
261
// the contents must exist before the cache metadata are saved below
262
262
fs . writeFileSync ( contentPath , contents ) ;
@@ -271,11 +271,11 @@ class AssetCache {
271
271
debug ( `Fetching from cache ${ contentPath } ` ) ;
272
272
273
273
if ( type === "json" || type === "parsed-xml" ) {
274
- debugAssets ( "Reading from require('%o')" , contentPath ) ;
274
+ debugAssets ( "[11ty/eleventy-fetch] Reading require('%o')" , contentPath ) ;
275
275
return require ( contentPath ) ;
276
276
}
277
277
278
- debugAssets ( "Reading from: %o" , contentPath ) ;
278
+ debugAssets ( "[11ty/eleventy-fetch] Reading %o" , contentPath ) ;
279
279
return fs . readFileSync ( contentPath , type !== "buffer" ? "utf8" : null ) ;
280
280
}
281
281
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class RemoteAssetCache extends AssetCache {
165
165
166
166
this . fetchCount ++ ;
167
167
168
- debugAssets ( "[@ 11ty/eleventy-fetch] Fetching: %o" , this . source ) ;
168
+ debugAssets ( "[11ty/eleventy-fetch] Fetching %o" , this . source ) ;
169
169
170
170
// v5: now using global (Node-native or otherwise) fetch instead of node-fetch
171
171
let response = await fetch ( this . source , fetchOptions ) ;
You can’t perform that action at this time.
0 commit comments