{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/python-for-android/issues/495","labels_url":"https://api.github.com/repos/kivy/python-for-android/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/kivy/python-for-android/issues/495/comments","events_url":"https://api.github.com/repos/kivy/python-for-android/issues/495/events","html_url":"https://github.com/kivy/python-for-android/pull/495","id":118043405,"number":495,"title":"send notifications to stderr. use colorization on stdout or stderr only if a tty.","user":{"login":"denys-duchier","id":966422,"avatar_url":"https://avatars.githubusercontent.com/u/966422?v=3","gravatar_id":"","url":"https://api.github.com/users/denys-duchier","html_url":"https://github.com/denys-duchier","followers_url":"https://api.github.com/users/denys-duchier/followers","following_url":"https://api.github.com/users/denys-duchier/following{/other_user}","gists_url":"https://api.github.com/users/denys-duchier/gists{/gist_id}","starred_url":"https://api.github.com/users/denys-duchier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denys-duchier/subscriptions","organizations_url":"https://api.github.com/users/denys-duchier/orgs","repos_url":"https://api.github.com/users/denys-duchier/repos","events_url":"https://api.github.com/users/denys-duchier/events{/privacy}","received_events_url":"https://api.github.com/users/denys-duchier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T13:32:34Z","updated_at":"2015-11-24T18:54:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kivy/python-for-android/pulls/495","html_url":"https://github.com/kivy/python-for-android/pull/495","diff_url":"https://github.com/kivy/python-for-android/pull/495.diff","patch_url":"https://github.com/kivy/python-for-android/pull/495.patch"},"body":"This patch sends log messages to stderr.  See e.g. the url below for why that's preferable:\r\n\r\nhttp://www.jstorimer.com/blogs/workingwithcode/7766119-when-to-use-stderr-instead-of-stdout\r\n\r\nbasically stdout is for primary data, and stderr for ancillary data (erros, notifications, ...), and this separation plays well with combining processes using pipes.  It improves on my previous patch in that log info when calling p4a from buildozer will no longer be thrown away.\r\n\r\nI also modified colorization, whether on stdout or stderr, to happen only when the corresponding stream is a tty."},"comment":{"url":"https://api.github.com/repos/kivy/python-for-android/issues/comments/159371148","html_url":"https://github.com/kivy/python-for-android/pull/495#issuecomment-159371148","issue_url":"https://api.github.com/repos/kivy/python-for-android/issues/495","id":159371148,"user":{"login":"inclement","id":1265819,"avatar_url":"https://avatars.githubusercontent.com/u/1265819?v=3","gravatar_id":"","url":"https://api.github.com/users/inclement","html_url":"https://github.com/inclement","followers_url":"https://api.github.com/users/inclement/followers","following_url":"https://api.github.com/users/inclement/following{/other_user}","gists_url":"https://api.github.com/users/inclement/gists{/gist_id}","starred_url":"https://api.github.com/users/inclement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inclement/subscriptions","organizations_url":"https://api.github.com/users/inclement/orgs","repos_url":"https://api.github.com/users/inclement/repos","events_url":"https://api.github.com/users/inclement/events{/privacy}","received_events_url":"https://api.github.com/users/inclement/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T18:54:11Z","updated_at":"2015-11-24T18:54:11Z","body":"Great, thanks :)"}}