mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 14:33:17 +00:00
Remove extra console.log statements (#811)
- remove one added in screencaster - also remove others that are outside logging system - bump to 1.5.10
This commit is contained in:
parent
91f8fadc5f
commit
bf6fbe8776
5 changed files with 10 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "browsertrix-crawler",
|
"name": "browsertrix-crawler",
|
||||||
"version": "1.5.9",
|
"version": "1.5.10",
|
||||||
"main": "browsertrix-crawler",
|
"main": "browsertrix-crawler",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"repository": "https://github.com/webrecorder/browsertrix-crawler",
|
"repository": "https://github.com/webrecorder/browsertrix-crawler",
|
||||||
|
|
|
@ -2871,7 +2871,6 @@ function getDownloadResponse(req: HTTPRequest) {
|
||||||
return resp;
|
return resp;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -285,7 +285,11 @@ export class ReplayCrawler extends Crawler {
|
||||||
try {
|
try {
|
||||||
pageData = JSON.parse(page);
|
pageData = JSON.parse(page);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(page, e);
|
logger.error(
|
||||||
|
"Error parsing page data",
|
||||||
|
{ data: page, ...formatErr(e) },
|
||||||
|
"replay",
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -195,8 +195,6 @@ class ScreenCaster {
|
||||||
this.transport = transport;
|
this.transport = transport;
|
||||||
this.transport.caster = this;
|
this.transport.caster = this;
|
||||||
|
|
||||||
console.log("RATIO", ratio);
|
|
||||||
|
|
||||||
if (ratio) {
|
if (ratio) {
|
||||||
this.maxHeight = this.maxWidth / ratio;
|
this.maxHeight = this.maxWidth / ratio;
|
||||||
}
|
}
|
||||||
|
|
|
@ -304,13 +304,13 @@ export class SitemapReader extends EventEmitter {
|
||||||
}
|
}
|
||||||
} else if (!otherTags) {
|
} else if (!otherTags) {
|
||||||
if (parsingUrl) {
|
if (parsingUrl) {
|
||||||
console.warn("text in url, ignoring");
|
logger.debug("text in url, ignoring", {}, "sitemap");
|
||||||
} else if (parsingUrlset) {
|
} else if (parsingUrlset) {
|
||||||
console.warn("text in urlset, ignoring");
|
logger.debug("text in urlset, ignoring", {}, "sitemap");
|
||||||
} else if (parsingSitemap) {
|
} else if (parsingSitemap) {
|
||||||
console.warn("text in sitemap, ignoring");
|
logger.debug("text in sitemap, ignoring", {}, "sitemap");
|
||||||
} else if (parsingSitemapIndex) {
|
} else if (parsingSitemapIndex) {
|
||||||
console.warn("text in sitemapindex, ignoring");
|
logger.debug("text in sitemapindex, ignoring", {}, "sitemap");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue