I thought about that briefly, but then I could not get the benifit of
logging meta info about the request which generated the log. Also, we
might be already or might in future want to use promises internally,
which would lead to some unexpected logs.


On Sun, Mar 9, 2014 at 11:29 PM, Calvin Metcalf
<notifications@github.com> wrote:
>
> In bin/repl.js:
>
> > +    return string;
> > +  }
> > +  if (!length) {
> > +    length = 400;
> > +  }
> > +
> > +  if (string.length > length) {
> > +    return string.substring(0, length) + '...';
> > +  } else {
> > +    return string;
> > +  }
> > +}
> > +
> > +
> > +// A patched toPromise function, to log the results of promise if required.
> > +utils.toPromise = function (func, passPromise) {
>
> you could instead just patch bluebird
>
> --
> Reply to this email directly or view it on GitHub.




-- 
Thanks
Rohan Jain