{"action":"created","issue":{"url":"https://api.github.com/repos/uncss/uncss/issues/386","repository_url":"https://api.github.com/repos/uncss/uncss","labels_url":"https://api.github.com/repos/uncss/uncss/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/uncss/uncss/issues/386/comments","events_url":"https://api.github.com/repos/uncss/uncss/issues/386/events","html_url":"https://github.com/uncss/uncss/pull/386","id":354772735,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExNDU1MDUy","number":386,"title":" Redirect stdout (console.log) to stderr","user":{"login":"brandonaaron","id":13718,"node_id":"MDQ6VXNlcjEzNzE4","avatar_url":"https://avatars0.githubusercontent.com/u/13718?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonaaron","html_url":"https://github.com/brandonaaron","followers_url":"https://api.github.com/users/brandonaaron/followers","following_url":"https://api.github.com/users/brandonaaron/following{/other_user}","gists_url":"https://api.github.com/users/brandonaaron/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonaaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonaaron/subscriptions","organizations_url":"https://api.github.com/users/brandonaaron/orgs","repos_url":"https://api.github.com/users/brandonaaron/repos","events_url":"https://api.github.com/users/brandonaaron/events{/privacy}","received_events_url":"https://api.github.com/users/brandonaaron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-28T15:01:45Z","updated_at":"2018-09-04T14:14:41Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/uncss/uncss/pulls/386","html_url":"https://github.com/uncss/uncss/pull/386","diff_url":"https://github.com/uncss/uncss/pull/386.diff","patch_url":"https://github.com/uncss/uncss/pull/386.patch"},"body":"When using the cli to redirect output to a file, `console.log` statements within scripts will end up in the resulting css. As brought up in uncss/uncss#385, this uses the virtual console to redirect all console output to `stderr`."},"comment":{"url":"https://api.github.com/repos/uncss/uncss/issues/comments/418382869","html_url":"https://github.com/uncss/uncss/pull/386#issuecomment-418382869","issue_url":"https://api.github.com/repos/uncss/uncss/issues/386","id":418382869,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODM4Mjg2OQ==","user":{"login":"brandonaaron","id":13718,"node_id":"MDQ6VXNlcjEzNzE4","avatar_url":"https://avatars0.githubusercontent.com/u/13718?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonaaron","html_url":"https://github.com/brandonaaron","followers_url":"https://api.github.com/users/brandonaaron/followers","following_url":"https://api.github.com/users/brandonaaron/following{/other_user}","gists_url":"https://api.github.com/users/brandonaaron/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonaaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonaaron/subscriptions","organizations_url":"https://api.github.com/users/brandonaaron/orgs","repos_url":"https://api.github.com/users/brandonaaron/repos","events_url":"https://api.github.com/users/brandonaaron/events{/privacy}","received_events_url":"https://api.github.com/users/brandonaaron/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T14:14:41Z","updated_at":"2018-09-04T14:14:41Z","author_association":"NONE","body":"Had some time to revisit this. `console.debug` did not exist in Node.js 6. Locally I was running the test suite against a newer version where the method did exist. In the newer versions it is just an alias for `console.log`. In fact, `console.info` is also just an alias for `console.log`. Perhaps I should simplify the code and just check `console.log` instead of looping on `log` and `info`. Thoughts?"}}
{"actor":{"display_login":"brandonaaron"}}