{"action":"created","issue":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/1010","labels_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1010/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1010/comments","events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1010/events","html_url":"https://github.com/benoitc/gunicorn/pull/1010","id":69650764,"number":1010,"title":"Fix statsd Logging in Python 3","user":{"login":"krallin","id":1737686,"avatar_url":"https://avatars.githubusercontent.com/u/1737686?v=3","gravatar_id":"","url":"https://api.github.com/users/krallin","html_url":"https://github.com/krallin","followers_url":"https://api.github.com/users/krallin/followers","following_url":"https://api.github.com/users/krallin/following{/other_user}","gists_url":"https://api.github.com/users/krallin/gists{/gist_id}","starred_url":"https://api.github.com/users/krallin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krallin/subscriptions","organizations_url":"https://api.github.com/users/krallin/orgs","repos_url":"https://api.github.com/users/krallin/repos","events_url":"https://api.github.com/users/krallin/events{/privacy}","received_events_url":"https://api.github.com/users/krallin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-20T18:30:19Z","updated_at":"2015-04-30T12:07:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/benoitc/gunicorn/pulls/1010","html_url":"https://github.com/benoitc/gunicorn/pull/1010","diff_url":"https://github.com/benoitc/gunicorn/pull/1010.diff","patch_url":"https://github.com/benoitc/gunicorn/pull/1010.patch"},"body":"`statsd` logging appears to be (silently) broken in Python 3, because it passes it passes `unicode` (i.e. not `bytes`) to the `sock.send` method.\r\n\r\nThis PR:\r\n\r\n  + Ensures `bytes` are used\r\n  + Adds tests that actually go through an actual (UNIX) socket to ensure those errors can be caught in uni testing in the future.\r\n  + Logs `statsd` errors as warnings (the exceptions being silently swallowed made them difficult to troubleshoot)"},"comment":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/comments/97750972","html_url":"https://github.com/benoitc/gunicorn/pull/1010#issuecomment-97750972","issue_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1010","id":97750972,"user":{"login":"krallin","id":1737686,"avatar_url":"https://avatars.githubusercontent.com/u/1737686?v=3","gravatar_id":"","url":"https://api.github.com/users/krallin","html_url":"https://github.com/krallin","followers_url":"https://api.github.com/users/krallin/followers","following_url":"https://api.github.com/users/krallin/following{/other_user}","gists_url":"https://api.github.com/users/krallin/gists{/gist_id}","starred_url":"https://api.github.com/users/krallin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krallin/subscriptions","organizations_url":"https://api.github.com/users/krallin/orgs","repos_url":"https://api.github.com/users/krallin/repos","events_url":"https://api.github.com/users/krallin/events{/privacy}","received_events_url":"https://api.github.com/users/krallin/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T12:07:43Z","updated_at":"2015-04-30T12:07:43Z","body":"@berkerpeksag Sure — done"}}