Add debug call for paste fetching

master
Sven Slootweg 7 years ago
parent 773794d324
commit ac3831e554

@ -25,6 +25,7 @@ module.exports = function createPastebinComScraper(options = {}) {
queue.define("fetchPaste", (task) => {
return Promise.try(() => {
debug(`Fetching paste ID ${task.pasteKey}...`)
return bhttp.get(`http://pastebin.com/api_scrape_item.php?i=${task.pasteKey}`);
}).then((response) => {
if (response.statusCode !== 200) {

Loading…
Cancel
Save