Skip to content

Commit

Permalink
Beautify output
Browse files Browse the repository at this point in the history
  • Loading branch information
3Alan committed Oct 15, 2022
1 parent a319864 commit 03cf69a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions api/baidu.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports = async (urlList, token) => {
body: data
});

console.log(`baidu response : ${res}`);
console.log(`🎉baidu response : ${JSON.stringify(res)}`);
} catch (error) {
console.log(`baidu error : ${error}`);
console.log(`baidu error : ${JSON.stringify(error)}`);
}
};
6 changes: 3 additions & 3 deletions api/bing.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ module.exports = async (site, urlList, token) => {
json: data
});

console.log(`bing response : ${res}`);
console.log(`🎉bing response : ${JSON.stringify(res)}`);
} catch (error) {
console.log(`bing error : ${error}`);
console.log(`bing error : ${JSON.stringify(error)}`);
}
};
};
6 changes: 3 additions & 3 deletions api/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = async (urlList, clientEmail, key) => {

jwtClient.authorize((err, tokens) => {
if (err) {
console.log(`google authorize error: ${err}`);
console.log(`google authorize error: ${JSON.stringify(err)}`);
return;
}

Expand All @@ -33,10 +33,10 @@ module.exports = async (urlList, clientEmail, key) => {
};

const res = await request(options);
console.log(`google response : ${JSON.stringify(res)}`);
console.log(`🎉google response : ${JSON.stringify(res)}`);
});
});
} catch (error) {
console.log(`google error : ${error}`);
console.log(`google error : ${JSON.stringify(error)}`);
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "search-engines-urls-push",
"version": "0.0.1",
"version": "0.2.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 03cf69a

Please sign in to comment.