cocos2d / cocos2d-console

cocos2d command line tool
152 stars 190 forks source link

Flush logging message before launch subprocess. #329

Closed xpol closed 8 years ago

xpol commented 8 years ago

Logging print in terminal is printed correctly before subprocess.

But when cocos command it self is launched by nodejs/atom and outputs are read by pipe (see atom build) About 2~3 lines of logging message before subprocess will not printed until subprocess returns.

So we needs to flush logging messages before launch subprocess.

natural-law commented 8 years ago

@xpol Thanks for your contribution!