strongloop / node-foreman

A Node.js Version of Foreman
http://strongloop.github.io/node-foreman/
Other
1.27k stars 119 forks source link

Bad sync between stdout and stderr #128

Closed intervalia closed 6 years ago

intervalia commented 8 years ago

I don't know if there is anything you can do about this, but when using console.log and console.error in the same process their output may not be in the same order as intended.

For example I have the following code:

  console.warn('---- calling warn');
  console.log('---- calling log');
  console.info('---- calling info');
  console.error('---- calling error');

When using --raw I get the following output:

---- calling warn

---- calling error

---- calling log
---- calling info

When using -t 0 I get the following output:

11:43:50 AM web.1 |  ---- calling warn
11:43:50 AM web.1 |  ---- calling error
11:43:50 AM web.1 |  ---- calling log
11:43:50 AM web.1 |  ---- calling info

Again, I don't know if there is anything you can do about this, but I wanted to make you aware of the problem.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.