{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/build-relengapi/issues/179","labels_url":"https://api.github.com/repos/mozilla/build-relengapi/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/build-relengapi/issues/179/comments","events_url":"https://api.github.com/repos/mozilla/build-relengapi/issues/179/events","html_url":"https://github.com/mozilla/build-relengapi/pull/179","id":59594619,"number":179,"title":"Add setting for celery logging","user":{"login":"Callek","id":1415602,"avatar_url":"https://avatars.githubusercontent.com/u/1415602?v=3","gravatar_id":"","url":"https://api.github.com/users/Callek","html_url":"https://github.com/Callek","followers_url":"https://api.github.com/users/Callek/followers","following_url":"https://api.github.com/users/Callek/following{/other_user}","gists_url":"https://api.github.com/users/Callek/gists{/gist_id}","starred_url":"https://api.github.com/users/Callek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Callek/subscriptions","organizations_url":"https://api.github.com/users/Callek/orgs","repos_url":"https://api.github.com/users/Callek/repos","events_url":"https://api.github.com/users/Callek/events{/privacy}","received_events_url":"https://api.github.com/users/Callek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mozilla/build-relengapi/milestones/3","html_url":"https://github.com/mozilla/build-relengapi/milestones/v2.0.0","labels_url":"https://api.github.com/repos/mozilla/build-relengapi/milestones/3/labels","id":906328,"number":3,"title":"v2.0.0","description":"Tools in place to support BuildAPI and other apps for migration.\r\n * Authentication","creator":{"login":"djmitche","id":28673,"avatar_url":"https://avatars.githubusercontent.com/u/28673?v=3","gravatar_id":"","url":"https://api.github.com/users/djmitche","html_url":"https://github.com/djmitche","followers_url":"https://api.github.com/users/djmitche/followers","following_url":"https://api.github.com/users/djmitche/following{/other_user}","gists_url":"https://api.github.com/users/djmitche/gists{/gist_id}","starred_url":"https://api.github.com/users/djmitche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmitche/subscriptions","organizations_url":"https://api.github.com/users/djmitche/orgs","repos_url":"https://api.github.com/users/djmitche/repos","events_url":"https://api.github.com/users/djmitche/events{/privacy}","received_events_url":"https://api.github.com/users/djmitche/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":3,"state":"open","created_at":"2014-12-16T22:32:50Z","updated_at":"2015-03-20T20:45:57Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-03-03T04:44:12Z","updated_at":"2015-03-23T14:10:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/build-relengapi/pulls/179","html_url":"https://github.com/mozilla/build-relengapi/pull/179","diff_url":"https://github.com/mozilla/build-relengapi/pull/179.diff","patch_url":"https://github.com/mozilla/build-relengapi/pull/179.patch"},"body":"I had a desire to use debug logging for celery for relengapi, but I wanted it without the added global debugging (using `celery worker --loglevel debug` adds loads of other output)  (my current solution has been `print` which is sub-par)\r\n\r\nBasically I just wanted relengapi.* to log in debug mode.  I got the general idea for this approach from http://www.toforge.com/2011/06/celery-centralized-logging/\r\n\r\nThe structure of it stemmed mostly from needed to have the signal setup before celery fully instantiates (calls its signals), but after the relengapi app is setup, and in a spot that the signal can actually access the app.\r\n\r\nThis code would need docs and test(s) if it was to be merged in, but I wanted a :+1: for the general idea first.  @djmitche or @mrrrgn . What do you think?"},"comment":{"url":"https://api.github.com/repos/mozilla/build-relengapi/issues/comments/85014452","html_url":"https://github.com/mozilla/build-relengapi/pull/179#issuecomment-85014452","issue_url":"https://api.github.com/repos/mozilla/build-relengapi/issues/179","id":85014452,"user":{"login":"djmitche","id":28673,"avatar_url":"https://avatars.githubusercontent.com/u/28673?v=3","gravatar_id":"","url":"https://api.github.com/users/djmitche","html_url":"https://github.com/djmitche","followers_url":"https://api.github.com/users/djmitche/followers","following_url":"https://api.github.com/users/djmitche/following{/other_user}","gists_url":"https://api.github.com/users/djmitche/gists{/gist_id}","starred_url":"https://api.github.com/users/djmitche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmitche/subscriptions","organizations_url":"https://api.github.com/users/djmitche/orgs","repos_url":"https://api.github.com/users/djmitche/repos","events_url":"https://api.github.com/users/djmitche/events{/privacy}","received_events_url":"https://api.github.com/users/djmitche/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T14:10:09Z","updated_at":"2015-03-23T14:10:09Z","body":"@Callek ping?  I'd like to get 2.0.0 out soon, but this still needs testing and docs.."}}