Skip to content
This repository was archived by the owner on Dec 20, 2017. It is now read-only.

修复部署过程中loopLog出错没做处理的问题#106

Merged
jysperm merged 1 commit intoleancloud:masterfrom
GongT:master
Dec 4, 2015
Merged

修复部署过程中loopLog出错没做处理的问题#106
jysperm merged 1 commit intoleancloud:masterfrom
GongT:master

Conversation

@GongT
Copy link
Contributor

@GongT GongT commented Dec 3, 2015

部署过程中突然输出html然后以0状态退出

@jysperm jysperm merged commit 372f31c into leancloud:master Dec 4, 2015
@jysperm
Copy link
Contributor

jysperm commented Dec 4, 2015

感谢帮忙,你的修改有两个小问题:打印出来的 err 是一个很长的 Object 不是很好看;如果发生断网之类持续性的错误,setImmediate 会没有间隔地持续输出错误信息。

在合并过程中我把代码改成了这样:

console.error('[ERROR]loopLogs: ', err.message || (err.statusText && err.statusText.message));
setTimeout(doLoop, 1000);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants