{"action":"created","issue":{"url":"https://api.github.com/repos/redding/dat-worker-pool/issues/46","labels_url":"https://api.github.com/repos/redding/dat-worker-pool/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/redding/dat-worker-pool/issues/46/comments","events_url":"https://api.github.com/repos/redding/dat-worker-pool/issues/46/events","html_url":"https://github.com/redding/dat-worker-pool/pull/46","id":117914208,"number":46,"title":"Add logging to runner and workers","user":{"login":"jcredding","id":85966,"avatar_url":"https://avatars.githubusercontent.com/u/85966?v=3","gravatar_id":"","url":"https://api.github.com/users/jcredding","html_url":"https://github.com/jcredding","followers_url":"https://api.github.com/users/jcredding/followers","following_url":"https://api.github.com/users/jcredding/following{/other_user}","gists_url":"https://api.github.com/users/jcredding/gists{/gist_id}","starred_url":"https://api.github.com/users/jcredding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcredding/subscriptions","organizations_url":"https://api.github.com/users/jcredding/orgs","repos_url":"https://api.github.com/users/jcredding/repos","events_url":"https://api.github.com/users/jcredding/events{/privacy}","received_events_url":"https://api.github.com/users/jcredding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-19T21:43:15Z","updated_at":"2015-11-21T06:38:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/redding/dat-worker-pool/pulls/46","html_url":"https://github.com/redding/dat-worker-pool/pull/46","diff_url":"https://github.com/redding/dat-worker-pool/pull/46.diff","patch_url":"https://github.com/redding/dat-worker-pool/pull/46.patch"},"body":"This updates the runner and workers to have debug logging. This is\r\nto help with seeing what a worker pool and its workers are doing.\r\n\r\nThe runner will now log when it starts and shuts down. It logs the\r\nnumber of workers it is starting or waiting to shut down and will\r\nlog if it is doing a normal shutdown or forcing the workers to\r\nshutdown.\r\n\r\nThe worker will log as it moves between its different states:\r\nstarting, available, unavailable, working and shutting down. It\r\nalso logs any errors that occur.\r\n\r\nIn addition to adding logging, workers are now given a number by\r\ntheir runner. This is used in their logs to identify the worker\r\nand is also a helper that can be used in custom logging or other\r\nlogic as needed.\r\n\r\n@kellyredding - Ready for review."},"comment":{"url":"https://api.github.com/repos/redding/dat-worker-pool/issues/comments/158595340","html_url":"https://github.com/redding/dat-worker-pool/pull/46#issuecomment-158595340","issue_url":"https://api.github.com/repos/redding/dat-worker-pool/issues/46","id":158595340,"user":{"login":"kellyredding","id":82110,"avatar_url":"https://avatars.githubusercontent.com/u/82110?v=3","gravatar_id":"","url":"https://api.github.com/users/kellyredding","html_url":"https://github.com/kellyredding","followers_url":"https://api.github.com/users/kellyredding/followers","following_url":"https://api.github.com/users/kellyredding/following{/other_user}","gists_url":"https://api.github.com/users/kellyredding/gists{/gist_id}","starred_url":"https://api.github.com/users/kellyredding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellyredding/subscriptions","organizations_url":"https://api.github.com/users/kellyredding/orgs","repos_url":"https://api.github.com/users/kellyredding/repos","events_url":"https://api.github.com/users/kellyredding/events{/privacy}","received_events_url":"https://api.github.com/users/kellyredding/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T06:38:07Z","updated_at":"2015-11-21T06:38:07Z","body":"@jcredding this all looks really good!  One minor comment - otherwise :-1: "}}