Skip to content

Commit b584ddd

Browse files
committed
fix: don't log 404 error when fetching entries
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
1 parent d99d54e commit b584ddd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

indexer/lib/advertisement-walker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ export async function fetchAdvertisedPayload (providerAddress, advertisementCid,
298298
// We are not able to fetch the advertised entries. Skip this advertisement so that we can
299299
// continue the ingestion of other advertisements.
300300
const errorDescription = describeFetchError(err, providerAddress)
301-
console.warn(
301+
const log = /** @type {any} */(err)?.statusCode === 404 ? debug : console.warn
302+
log(
302303
'Cannot fetch ad %s entries %s: %s',
303304
advertisementCid,
304305
entriesCid,

0 commit comments

Comments
 (0)