Add debug call for scraper initialization

master
Sven Slootweg 7 years ago
parent ac3831e554
commit c12e1b4db0

@ -23,6 +23,8 @@ module.exports = function createPastebinComScraper(options = {}) {
let knownPastes = []; let knownPastes = [];
let previousKnownPastes = []; let previousKnownPastes = [];
debug(`Initializing with pasteInterval ${options.pasteInterval}, listInterval ${options.listInterval}, and listLimit ${options.listLimit}`);
queue.define("fetchPaste", (task) => { queue.define("fetchPaste", (task) => {
return Promise.try(() => { return Promise.try(() => {
debug(`Fetching paste ID ${task.pasteKey}...`) debug(`Fetching paste ID ${task.pasteKey}...`)

Loading…
Cancel
Save