{"action":"created","issue":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/705","repository_url":"https://api.github.com/repos/KeepSafe/aiohttp","labels_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/705/comments","events_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/705/events","html_url":"https://github.com/KeepSafe/aiohttp/issues/705","id":123853731,"number":705,"title":"access log format is invalid when using gunicorn worker","user":{"login":"sontek","id":151924,"avatar_url":"https://avatars.githubusercontent.com/u/151924?v=3","gravatar_id":"","url":"https://api.github.com/users/sontek","html_url":"https://github.com/sontek","followers_url":"https://api.github.com/users/sontek/followers","following_url":"https://api.github.com/users/sontek/following{/other_user}","gists_url":"https://api.github.com/users/sontek/gists{/gist_id}","starred_url":"https://api.github.com/users/sontek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sontek/subscriptions","organizations_url":"https://api.github.com/users/sontek/orgs","repos_url":"https://api.github.com/users/sontek/repos","events_url":"https://api.github.com/users/sontek/events{/privacy}","received_events_url":"https://api.github.com/users/sontek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-12-25T05:18:03Z","updated_at":"2016-08-24T12:24:45Z","closed_at":null,"body":"It seems you have to pass in `--access-logformat='%a %l %u %t \"%r\" %s %b \"%{Referrer}i\" \"%{User-Agent}i\"'` to gunicorn for logging to work, they default format from gunicorn is `\"%(h)s %(l)s %(u)s %(t)s \"%(r)s\" %(s)s %(b)s \"%(f)s\" \"%(a)s\"` which doesn't work with aiohttp"},"comment":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/comments/242043986","html_url":"https://github.com/KeepSafe/aiohttp/issues/705#issuecomment-242043986","issue_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/705","id":242043986,"user":{"login":"asvetlov","id":356399,"avatar_url":"https://avatars.githubusercontent.com/u/356399?v=3","gravatar_id":"","url":"https://api.github.com/users/asvetlov","html_url":"https://github.com/asvetlov","followers_url":"https://api.github.com/users/asvetlov/followers","following_url":"https://api.github.com/users/asvetlov/following{/other_user}","gists_url":"https://api.github.com/users/asvetlov/gists{/gist_id}","starred_url":"https://api.github.com/users/asvetlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asvetlov/subscriptions","organizations_url":"https://api.github.com/users/asvetlov/orgs","repos_url":"https://api.github.com/users/asvetlov/repos","events_url":"https://api.github.com/users/asvetlov/events{/privacy}","received_events_url":"https://api.github.com/users/asvetlov/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T12:24:44Z","updated_at":"2016-08-24T12:24:44Z","body":"We can make a workaround.\r\n1. Replace *default gunicorn* logger format with *default aiohttp* one on worker initialization.\r\nFollow step may be:\r\n2. Add a checker for *gunicorn logging style* and raise an explicit error on worker initialization\r\nIt can be just regexp for `%(name)s` parts in logging spec.\r\n\r\nWe can also add a support for *gunicorn style* but it requires much more work and the solution is very complicated from my perspective.\r\n\r\n@f0t0n maybe you have an interest in fixing the issue?"}}
{"actor":{"display_login":"asvetlov"}}