diff --git a/api/baidu.js b/api/baidu.js index 6437c17..cfa636d 100644 --- a/api/baidu.js +++ b/api/baidu.js @@ -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)}`); } }; diff --git a/api/bing.js b/api/bing.js index 3197324..0f822ec 100644 --- a/api/bing.js +++ b/api/bing.js @@ -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)}`); } -}; +}; \ No newline at end of file diff --git a/api/google.js b/api/google.js index 00c459c..6e9d3c0 100644 --- a/api/google.js +++ b/api/google.js @@ -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; } @@ -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)}`); } }; diff --git a/package.json b/package.json index f976231..7bc7bb9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "search-engines-urls-push", - "version": "0.0.1", + "version": "0.2.1", "description": "", "main": "index.js", "scripts": {