{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/873","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/873/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/873/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/873/events","html_url":"https://github.com/commercialhaskell/stack/issues/873","id":103686331,"number":873,"title":"`stack path` outputs diagnostics to stdout","user":{"login":"thomasvnoort","id":1607559,"avatar_url":"https://avatars.githubusercontent.com/u/1607559?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasvnoort","html_url":"https://github.com/thomasvnoort","followers_url":"https://api.github.com/users/thomasvnoort/followers","following_url":"https://api.github.com/users/thomasvnoort/following{/other_user}","gists_url":"https://api.github.com/users/thomasvnoort/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasvnoort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasvnoort/subscriptions","organizations_url":"https://api.github.com/users/thomasvnoort/orgs","repos_url":"https://api.github.com/users/thomasvnoort/repos","events_url":"https://api.github.com/users/thomasvnoort/events{/privacy}","received_events_url":"https://api.github.com/users/thomasvnoort/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/awaiting%20pr","name":"awaiting pr","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/5","html_url":"https://github.com/commercialhaskell/stack/milestones/P1:%20Must","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/5/labels","id":1166824,"number":5,"title":"P1: Must","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":182,"state":"open","created_at":"2015-06-16T14:23:31Z","updated_at":"2015-10-06T15:54:28Z","due_on":"2015-10-31T07:00:00Z","closed_at":null},"comments":6,"created_at":"2015-08-28T09:41:30Z","updated_at":"2015-10-06T18:30:08Z","closed_at":null,"body":"When I run `stack path` while another stack instance is running, it outputs information about acquiring a lock to stdout. This makes it harder for build scripts to deal with the output of `stack path`, I'd expect such diagnostics to go to stderr. \r\n\r\nAlso, adding `--verbosity SILENT` doesn't make a difference, but I'm not sure if that's an issue. If so, I'd be happy to create a separate issue for that.\r\n\r\nNote that this issue is related to #872, if no locks are needed for `stack path` there might not be an issue here at all."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/145956644","html_url":"https://github.com/commercialhaskell/stack/issues/873#issuecomment-145956644","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/873","id":145956644,"user":{"login":"rrnewton","id":274582,"avatar_url":"https://avatars.githubusercontent.com/u/274582?v=3","gravatar_id":"","url":"https://api.github.com/users/rrnewton","html_url":"https://github.com/rrnewton","followers_url":"https://api.github.com/users/rrnewton/followers","following_url":"https://api.github.com/users/rrnewton/following{/other_user}","gists_url":"https://api.github.com/users/rrnewton/gists{/gist_id}","starred_url":"https://api.github.com/users/rrnewton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrnewton/subscriptions","organizations_url":"https://api.github.com/users/rrnewton/orgs","repos_url":"https://api.github.com/users/rrnewton/repos","events_url":"https://api.github.com/users/rrnewton/events{/privacy}","received_events_url":"https://api.github.com/users/rrnewton/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T18:30:08Z","updated_at":"2015-10-06T18:30:08Z","body":"Having a look now....\r\n\r\nIt is currently outputting to `stderr` btw, not `stdout`.  I see many other commands that use `hPutStrLn stderr`, but I now see those are only when bailing out with an error.  Ok, I found `LogLevel` and put in a test to see if it is `LevelOther \"silent\"`.  With some simple testing, this seems to work.  I made a pull request for it.\r\n\r\nHowever, I notice that other output actually disobeys `--verbosity=silent`.  For example, the following test doesn't print \"grabbing lock\" messages, but it does print other chatter about the index cache and progress:\r\n\r\n```bash\r\n> ($STACK --verbosity=silent build &); $STACK --verbosity=silent build\r\nPopulated index cache.\r\nProgress: 0/3\r\n```\r\n"}}