{"action":"opened","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/4026","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/4026/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/4026/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/4026/events","html_url":"https://github.com/Unitech/pm2/issues/4026","id":381134565,"node_id":"MDU6SXNzdWUzODExMzQ1NjU=","number":4026,"title":"process.stdout.write doesn't log in same line (with random line breaks)","user":{"login":"ph55","id":1386622,"node_id":"MDQ6VXNlcjEzODY2MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/1386622?v=4","gravatar_id":"","url":"https://api.github.com/users/ph55","html_url":"https://github.com/ph55","followers_url":"https://api.github.com/users/ph55/followers","following_url":"https://api.github.com/users/ph55/following{/other_user}","gists_url":"https://api.github.com/users/ph55/gists{/gist_id}","starred_url":"https://api.github.com/users/ph55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ph55/subscriptions","organizations_url":"https://api.github.com/users/ph55/orgs","repos_url":"https://api.github.com/users/ph55/repos","events_url":"https://api.github.com/users/ph55/events{/privacy}","received_events_url":"https://api.github.com/users/ph55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-15T12:13:31Z","updated_at":"2018-11-15T12:13:31Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nYour issue may already be reported!\r\nPlease search on the [issue tracker](https://github.com/Unitech/pm2/search?type=Issues) before creating one.\r\n-->\r\n\r\n## What's going wrong?\r\nWhen using `process.stdout.write` - output not in the same line. Also the line breaks are random.\r\n\r\n## How could we reproduce this issue?\r\n```\r\n// index.js\r\nprocess.stdout.write('this');\r\nprocess.stdout.write('should');\r\nprocess.stdout.write('be');\r\nprocess.stdout.write('in');\r\nprocess.stdout.write('one');\r\nprocess.stdout.write('line');\r\n```\r\n`pm2 start index.js`\r\n\r\nOutput for `pm2 logs`:\r\n```\r\n0|index  | this\r\n0|index  | should\r\n0|index  | beinoneline\r\n0|index  | this\r\n0|index  | should\r\n0|index  | beinoneline\r\n0|index  | thisshouldbeinoneline\r\n0|index  | this\r\n0|index  | should\r\n0|index  | bein\r\n0|index  | one\r\n0|index  | line\r\n0|index  | this\r\n0|index  | should\r\n0|index  | beinoneline\r\n0|index  | this\r\n0|index  | shouldbeinone\r\n```\r\n\r\n\r\n## Supporting information\r\n\r\n<!--\r\nPlease run the following command (available on PM2 >= 2.6)\r\n-->\r\n```\r\n$ pm2 report\r\n\r\n===============================================================================\r\n--- PM2 REPORT (Thu Nov 15 2018 14:01:23 GMT+0200 (Israel Standard Time)) -----\r\n===============================================================================\r\n--- Daemon -------------------------------------------------\r\npm2d version         : 3.2.2\r\nnode version         : 11.0.0\r\nnode path            : /usr/local/bin/pm2\r\nargv                 : /usr/local/Cellar/node/11.0.0/bin/node,/usr/local/lib/node_modules/pm2/lib/Daemon.js\r\nargv0                : node\r\nuser                 : sasha\r\nuid                  : 501\r\ngid                  : 20\r\nuptime               : 4min\r\n===============================================================================\r\n--- CLI ----------------------------------------------------\r\nlocal pm2            : 3.2.2\r\nnode version         : 11.0.0\r\nnode path            : /usr/local/bin/pm2\r\nargv                 : /usr/local/Cellar/node/11.0.0/bin/node,/usr/local/bin/pm2,report\r\nargv0                : node\r\nuser                 : sasha\r\nuid                  : 501\r\ngid                  : 20\r\n===============================================================================\r\n--- System info --------------------------------------------\r\narch                 : x64\r\nplatform             : darwin\r\ntype                 : Darwin\r\ncpus                 : Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz\r\ncpus nb              : 4\r\nfreemem              : 2403622912\r\ntotalmem             : 17179869184\r\nhome                 : /Users/sasha\r\n===============================================================================\r\n```\r\n"}}
{"actor":{"display_login":"ph55"}}