Skip to content

Commit

Permalink
Merge pull request #407 from GovTechSG/chore/remove-logger-for-fail-mime
Browse files Browse the repository at this point in the history
Disable error logging for failed MIME type checks in URL processing
  • Loading branch information
WilsonkwSheng authored Oct 10, 2024
2 parents b044664 + b11d084 commit 92d59d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crawlers/crawlDomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const crawlDomain = async (
}

} catch (e) {
silentLogger.error(`Error checking the MIME type of ${url}: ${e.message}`);
// silentLogger.error(`Error checking the MIME type of ${url}: ${e.message}`);
// If an error occurs (e.g., a network issue), assume the URL is processible
httpHeadCache.set(url, true);
return true;
Expand Down

0 comments on commit 92d59d3

Please sign in to comment.