{"action":"created","issue":{"url":"https://api.github.com/repos/amireh/happypack/issues/105","repository_url":"https://api.github.com/repos/amireh/happypack","labels_url":"https://api.github.com/repos/amireh/happypack/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/amireh/happypack/issues/105/comments","events_url":"https://api.github.com/repos/amireh/happypack/issues/105/events","html_url":"https://github.com/amireh/happypack/issues/105","id":190877464,"number":105,"title":"Print error to stderr when config verbose or debug is true","user":{"login":"enten","id":977713,"avatar_url":"https://avatars.githubusercontent.com/u/977713?v=3","gravatar_id":"","url":"https://api.github.com/users/enten","html_url":"https://github.com/enten","followers_url":"https://api.github.com/users/enten/followers","following_url":"https://api.github.com/users/enten/following{/other_user}","gists_url":"https://api.github.com/users/enten/gists{/gist_id}","starred_url":"https://api.github.com/users/enten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enten/subscriptions","organizations_url":"https://api.github.com/users/enten/orgs","repos_url":"https://api.github.com/users/enten/repos","events_url":"https://api.github.com/users/enten/events{/privacy}","received_events_url":"https://api.github.com/users/enten/received_events","type":"User","site_admin":false},"labels":[{"id":498116360,"url":"https://api.github.com/repos/amireh/happypack/labels/ready","name":"ready","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-22T00:43:14Z","updated_at":"2017-02-11T23:08:30Z","closed_at":null,"body":"Firstly: thanks for your awesome work!\r\n\r\nMy question: **how can we hide errors printed by HappyWorker?**\r\n\r\n#### HappyWorker [always print compilation error](https://github.com/amireh/happypack/blob/a7c4dffefbc03361fef43a10ea5918425a95aa6f/lib/HappyWorker.js#L41)\r\n\r\nIs it a desired behavior?\r\n**Why not print errors only when `config.verbose` or `config.debug` is true?**\r\nI would like to handle error printing manually.\r\n\r\n#### Usecase example\r\n\r\n```javascript\r\nconst config = {\r\n  // a webpack config which add an HappyPlugin\r\n  // and a module rule to use it\r\n}\r\nconst compiler = webpack(config)\r\ncompiler.plugin('done', (stats) => {\r\n  if (stats.hasErrors()) {\r\n    console.error('KO', stats.toString())\r\n  } else {\r\n    console.log('ok')\r\n  }\r\n})\r\ncompiler.watch({}, (err) => {})\r\n```\r\n\r\n**If an error occurred** during compilation, **it will be printed twice** (firstly by an [HappyWorker]((https://github.com/amireh/happypack/blob/a7c4dffefbc03361fef43a10ea5918425a95aa6f/lib/HappyWorker.js#L41)) instance and secondly by the listener above)\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/amireh/happypack/issues/comments/279182571","html_url":"https://github.com/amireh/happypack/issues/105#issuecomment-279182571","issue_url":"https://api.github.com/repos/amireh/happypack/issues/105","id":279182571,"user":{"login":"FallingSnow","id":2512197,"avatar_url":"https://avatars.githubusercontent.com/u/2512197?v=3","gravatar_id":"","url":"https://api.github.com/users/FallingSnow","html_url":"https://github.com/FallingSnow","followers_url":"https://api.github.com/users/FallingSnow/followers","following_url":"https://api.github.com/users/FallingSnow/following{/other_user}","gists_url":"https://api.github.com/users/FallingSnow/gists{/gist_id}","starred_url":"https://api.github.com/users/FallingSnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FallingSnow/subscriptions","organizations_url":"https://api.github.com/users/FallingSnow/orgs","repos_url":"https://api.github.com/users/FallingSnow/repos","events_url":"https://api.github.com/users/FallingSnow/events{/privacy}","received_events_url":"https://api.github.com/users/FallingSnow/received_events","type":"User","site_admin":false},"created_at":"2017-02-11T23:08:30Z","updated_at":"2017-02-11T23:08:30Z","body":"@amireh Is there a quick way to disable logging (quiet: true) until this becomes a feature?"}}
{"actor":{"display_login":"FallingSnow"}}