mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Log proxy url
This commit is contained in:
parent
a4ad78652a
commit
814f6098a3
1 changed files with 1 additions and 14 deletions
|
|
@ -63,6 +63,7 @@ const enableJavascriptForUrl = async (url) => {
|
|||
|
||||
// launch Puppeteer
|
||||
const getBrowserPromise = (async () => {
|
||||
console.log("starting with proxy url", process.env.PROXY_URL)
|
||||
return puppeteer.launch({
|
||||
args: [
|
||||
'--allow-running-insecure-content',
|
||||
|
|
@ -328,20 +329,6 @@ async function fetchContent(req, res) {
|
|||
logRecord.totalTime = Date.now() - functionStartTime;
|
||||
logRecord.result = apiResponse.createArticle;
|
||||
console.log(`parse-page`, logRecord);
|
||||
|
||||
// return res.send({
|
||||
// url: finalUrl,
|
||||
// articleSavingRequestId,
|
||||
// preparedDocument: {
|
||||
// document: content,
|
||||
// pageInfo: {
|
||||
// title,
|
||||
// canonicalUrl: finalUrl,
|
||||
// },
|
||||
// },
|
||||
// skipParsing: !content,
|
||||
// timeTaken: Date.now() - functionStartTime,
|
||||
// })
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('error', e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue