提交 d5114056 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

strip warning

上级 de556b95
......@@ -66,12 +66,14 @@ const onMessage = function(m) {
* To make heroku happy
*
*/
const app = require('express')()
if (process.env.DYNO) {
const app = require('express')()
app.get('/', function (req, res) {
app.get('/', function (req, res) {
res.send('Wechaty IO Bot Alive!')
})
})
app.listen(process.env.PORT || 8080, function () {
app.listen(process.env.PORT || 8080, function () {
console.log('Wechaty IO Bot listening on port ' + process.env.PORT + '!')
})
\ No newline at end of file
})
}
\ No newline at end of file
......@@ -72,7 +72,7 @@ function clearWatchDogTimer() {
if (this.watchDogTimer) {
clearTimeout(this.watchDogTimer)
this.watchDogTimer = null
log.warn('PuppetWebWatchdog', 'clearWatchDogTimer() cleared')
log.silly('PuppetWebWatchdog', 'clearWatchDogTimer() cleared')
} else {
log.silly('PuppetWebWatchdog', 'clearWatchDogTimer() nothing to clear')
}
......@@ -82,7 +82,7 @@ function setWatchDogTimer(timeout) {
clearWatchDogTimer.call(this)
log.warn('PuppetWebWatchdog', 'setWatchDogTimer(%d)', timeout)
log.silly('PuppetWebWatchdog', 'setWatchDogTimer(%d)', timeout)
this.watchDogTimer = setTimeout(watchDogReset.bind(this, timeout), timeout)
// block quit, force to use quit() // this.watchDogTimer.unref() // dont block quit
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册