Update warning message (#1501)

This commit is contained in:
Henry Wang
2019-01-31 03:01:46 +00:00
committed by DIYgod
parent 4729561483
commit aee658b121

View File

@@ -210,7 +210,7 @@ if (config.pixiv && config.pixiv.client_id && config.pixiv.client_secret && conf
router.get('/pixiv/ranking/:mode/:date?', require('./routes/pixiv/ranking'));
router.get('/pixiv/search/:keyword/:order?', require('./routes/pixiv/search'));
} else {
logger.warn('pixiv RSS is disabled for lacking config.');
logger.warn('pixiv RSS is disabled due to the lack of token, api key or relevant config in config.js.');
}
// 豆瓣
@@ -255,7 +255,7 @@ router.get('/jinritoutiao/keyword/:keyword', require('./routes/jinritoutiao/keyw
if (config.disqus && config.disqus.api_key) {
router.get('/disqus/posts/:forum', require('./routes/disqus/posts'));
} else {
logger.warn('Disqus RSS is disabled for lacking config.');
logger.warn('Disqus RSS is disabled due to the lack of token, api key or relevant config in config.js.');
}
// Twitter
@@ -264,7 +264,7 @@ if (config.twitter && config.twitter.consumer_key && config.twitter.consumer_sec
router.get('/twitter/list/:id/:name', require('./routes/twitter/list'));
router.get('/twitter/likes/:id', require('./routes/twitter/likes'));
} else {
logger.warn('Twitter RSS is disabled for lacking config.');
logger.warn('Twitter RSS is disabled due to the lack of token, api key or relevant config in config.js.');
}
// Instagram
@@ -276,7 +276,7 @@ if (config.youtube && config.youtube.key) {
router.get('/youtube/channel/:id/:embed?', require('./routes/youtube/channel'));
router.get('/youtube/playlist/:id/:embed?', require('./routes/youtube/playlist'));
} else {
logger.warn('Youtube RSS is disabled for lacking config.');
logger.warn('Youtube RSS is disabled due to the lack of token, api key or relevant config in config.js.');
}
// 即刻
@@ -318,10 +318,10 @@ if (config.telegram && config.telegram.token) {
if (config.imgur && config.imgur.clientId) {
router.get('/telegram/stickerpack/:name', require('./routes/telegram/stickerpack'));
} else {
logger.warn('Telegram Sticker Pack RSS is disabled for lacking config.');
logger.warn('Telegram Sticker Pack RSS is disabled due to the lack of token, api key or relevant config in config.js.');
}
} else {
logger.warn('Telegram RSS is disabled for lacking config.');
logger.warn('Telegram RSS is disabled due to the lack of token, api key or relevant config in config.js.');
}
// readhub
@@ -331,7 +331,7 @@ router.get('/readhub/category/:category', require('./routes/readhub/category'));
if (config.github && config.github.access_token) {
router.get('/github/repos/:user', require('./routes/github/repos'));
} else {
logger.warn('GitHub Repos RSS is disabled for lacking config.');
logger.warn('GitHub Repos RSS is disabled due to the lack of token, api key or relevant config in config.js.');
}
router.get('/github/trending/:since/:language?', require('./routes/github/trending'));
router.get('/github/issue/:user/:repo', require('./routes/github/issue'));