fix(module_log): limit module sync log size to 1MB

If log size bigger than 1MB, it will be auto slice to 0.5MB
嗯，避免每次都重新截取，通常只有刚开始同步的时候才会出现。

Sent from my iPhone

> On Nov 2, 2014, at 12:13 AM, Yiyu He <notifications@github.com> wrote:
> 
> In services/module_log.js:
> 
> > @@ -35,7 +37,15 @@ exports.append = function* (id, log) {
> >    if (!row) {
> >      return null;
> >    }
> > -  row.log += '\n' + log;
> > +
> > +  if (row.log) {
> > +    row.log += '\n' + log;
> > +  } else {
> > +    row.log = log;
> > +  }
> > +  if (row.log.length >= ONE_MB) {
> > +    row.log = '...\n' + row.log.substring(ONE_MB / 2);
> 大于 1mb 后只取 0.5 mb ?
> 
> —
> Reply to this email directly or view it on GitHub.