{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/Linaro/pdudaemon/pulls/15","id":90775677,"html_url":"https://github.com/Linaro/pdudaemon/pull/15","diff_url":"https://github.com/Linaro/pdudaemon/pull/15.diff","patch_url":"https://github.com/Linaro/pdudaemon/pull/15.patch","issue_url":"https://api.github.com/repos/Linaro/pdudaemon/issues/15","number":15,"state":"open","locked":false,"title":"Startup refactoring","user":{"login":"sjoerd-ccu","id":4599041,"avatar_url":"https://avatars.githubusercontent.com/u/4599041?v=3","gravatar_id":"","url":"https://api.github.com/users/sjoerd-ccu","html_url":"https://github.com/sjoerd-ccu","followers_url":"https://api.github.com/users/sjoerd-ccu/followers","following_url":"https://api.github.com/users/sjoerd-ccu/following{/other_user}","gists_url":"https://api.github.com/users/sjoerd-ccu/gists{/gist_id}","starred_url":"https://api.github.com/users/sjoerd-ccu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjoerd-ccu/subscriptions","organizations_url":"https://api.github.com/users/sjoerd-ccu/orgs","repos_url":"https://api.github.com/users/sjoerd-ccu/repos","events_url":"https://api.github.com/users/sjoerd-ccu/events{/privacy}","received_events_url":"https://api.github.com/users/sjoerd-ccu/received_events","type":"User","site_admin":false},"body":"Playing with pdudaemon caused two annoyances.\r\n*  there is no way to run it in the foreground to do quick hack/debug cycles when adding \r\n    a new pdu driver \r\n* It directly writes its own logfile rather then using any existing logging infrastructure (so doesn't \r\n   integrate with journal/syslog, need elevated permissions to create the file in /var/log, needs \r\n   logrotate assistance to rotate etc)\r\n\r\nThis pull request fixes the former in the obvious way and the latter by adding an option to log to the journal (which can be further processed via syslog if one wants to)","created_at":"2016-10-25T10:01:24Z","updated_at":"2016-10-25T10:01:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Linaro/pdudaemon/pulls/15/commits","review_comments_url":"https://api.github.com/repos/Linaro/pdudaemon/pulls/15/comments","review_comment_url":"https://api.github.com/repos/Linaro/pdudaemon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Linaro/pdudaemon/issues/15/comments","statuses_url":"https://api.github.com/repos/Linaro/pdudaemon/statuses/208063b2a4bfc28a430c34cb5eb9bdc4b1990ade","head":{"label":"sjoerd-ccu:startup-refactoring","ref":"startup-refactoring","sha":"208063b2a4bfc28a430c34cb5eb9bdc4b1990ade","user":{"login":"sjoerd-ccu","id":4599041,"avatar_url":"https://avatars.githubusercontent.com/u/4599041?v=3","gravatar_id":"","url":"https://api.github.com/users/sjoerd-ccu","html_url":"https://github.com/sjoerd-ccu","followers_url":"https://api.github.com/users/sjoerd-ccu/followers","following_url":"https://api.github.com/users/sjoerd-ccu/following{/other_user}","gists_url":"https://api.github.com/users/sjoerd-ccu/gists{/gist_id}","starred_url":"https://api.github.com/users/sjoerd-ccu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjoerd-ccu/subscriptions","organizations_url":"https://api.github.com/users/sjoerd-ccu/orgs","repos_url":"https://api.github.com/users/sjoerd-ccu/repos","events_url":"https://api.github.com/users/sjoerd-ccu/events{/privacy}","received_events_url":"https://api.github.com/users/sjoerd-ccu/received_events","type":"User","site_admin":false},"repo":{"id":71875784,"name":"pdudaemon","full_name":"sjoerd-ccu/pdudaemon","owner":{"login":"sjoerd-ccu","id":4599041,"avatar_url":"https://avatars.githubusercontent.com/u/4599041?v=3","gravatar_id":"","url":"https://api.github.com/users/sjoerd-ccu","html_url":"https://github.com/sjoerd-ccu","followers_url":"https://api.github.com/users/sjoerd-ccu/followers","following_url":"https://api.github.com/users/sjoerd-ccu/following{/other_user}","gists_url":"https://api.github.com/users/sjoerd-ccu/gists{/gist_id}","starred_url":"https://api.github.com/users/sjoerd-ccu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjoerd-ccu/subscriptions","organizations_url":"https://api.github.com/users/sjoerd-ccu/orgs","repos_url":"https://api.github.com/users/sjoerd-ccu/repos","events_url":"https://api.github.com/users/sjoerd-ccu/events{/privacy}","received_events_url":"https://api.github.com/users/sjoerd-ccu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sjoerd-ccu/pdudaemon","description":"Python daemon for controlling/sequentially executing commands to PDUs (Power Distribution Units)","fork":true,"url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon","forks_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/forks","keys_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/teams","hooks_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/hooks","issue_events_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/issues/events{/number}","events_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/events","assignees_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/assignees{/user}","branches_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/branches{/branch}","tags_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/tags","blobs_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/git/refs{/sha}","trees_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/statuses/{sha}","languages_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/languages","stargazers_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/stargazers","contributors_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/contributors","subscribers_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/subscribers","subscription_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/subscription","commits_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/commits{/sha}","git_commits_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/git/commits{/sha}","comments_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/comments{/number}","issue_comment_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/issues/comments{/number}","contents_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/contents/{+path}","compare_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/merges","archive_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/downloads","issues_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/issues{/number}","pulls_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/pulls{/number}","milestones_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/milestones{/number}","notifications_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/labels{/name}","releases_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/releases{/id}","deployments_url":"https://api.github.com/repos/sjoerd-ccu/pdudaemon/deployments","created_at":"2016-10-25T08:27:53Z","updated_at":"2016-10-25T08:27:54Z","pushed_at":"2016-10-25T09:48:56Z","git_url":"git://github.com/sjoerd-ccu/pdudaemon.git","ssh_url":"git@github.com:sjoerd-ccu/pdudaemon.git","clone_url":"https://github.com/sjoerd-ccu/pdudaemon.git","svn_url":"https://github.com/sjoerd-ccu/pdudaemon","homepage":null,"size":83,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Linaro:master","ref":"master","sha":"a40d7097e91d297a8ba7b22cf039e60d92cd17a2","user":{"login":"Linaro","id":1180626,"avatar_url":"https://avatars.githubusercontent.com/u/1180626?v=3","gravatar_id":"","url":"https://api.github.com/users/Linaro","html_url":"https://github.com/Linaro","followers_url":"https://api.github.com/users/Linaro/followers","following_url":"https://api.github.com/users/Linaro/following{/other_user}","gists_url":"https://api.github.com/users/Linaro/gists{/gist_id}","starred_url":"https://api.github.com/users/Linaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linaro/subscriptions","organizations_url":"https://api.github.com/users/Linaro/orgs","repos_url":"https://api.github.com/users/Linaro/repos","events_url":"https://api.github.com/users/Linaro/events{/privacy}","received_events_url":"https://api.github.com/users/Linaro/received_events","type":"Organization","site_admin":false},"repo":{"id":45937279,"name":"pdudaemon","full_name":"Linaro/pdudaemon","owner":{"login":"Linaro","id":1180626,"avatar_url":"https://avatars.githubusercontent.com/u/1180626?v=3","gravatar_id":"","url":"https://api.github.com/users/Linaro","html_url":"https://github.com/Linaro","followers_url":"https://api.github.com/users/Linaro/followers","following_url":"https://api.github.com/users/Linaro/following{/other_user}","gists_url":"https://api.github.com/users/Linaro/gists{/gist_id}","starred_url":"https://api.github.com/users/Linaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linaro/subscriptions","organizations_url":"https://api.github.com/users/Linaro/orgs","repos_url":"https://api.github.com/users/Linaro/repos","events_url":"https://api.github.com/users/Linaro/events{/privacy}","received_events_url":"https://api.github.com/users/Linaro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Linaro/pdudaemon","description":"Python daemon for controlling/sequentially executing commands to PDUs (Power Distribution Units)","fork":false,"url":"https://api.github.com/repos/Linaro/pdudaemon","forks_url":"https://api.github.com/repos/Linaro/pdudaemon/forks","keys_url":"https://api.github.com/repos/Linaro/pdudaemon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Linaro/pdudaemon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Linaro/pdudaemon/teams","hooks_url":"https://api.github.com/repos/Linaro/pdudaemon/hooks","issue_events_url":"https://api.github.com/repos/Linaro/pdudaemon/issues/events{/number}","events_url":"https://api.github.com/repos/Linaro/pdudaemon/events","assignees_url":"https://api.github.com/repos/Linaro/pdudaemon/assignees{/user}","branches_url":"https://api.github.com/repos/Linaro/pdudaemon/branches{/branch}","tags_url":"https://api.github.com/repos/Linaro/pdudaemon/tags","blobs_url":"https://api.github.com/repos/Linaro/pdudaemon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Linaro/pdudaemon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Linaro/pdudaemon/git/refs{/sha}","trees_url":"https://api.github.com/repos/Linaro/pdudaemon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Linaro/pdudaemon/statuses/{sha}","languages_url":"https://api.github.com/repos/Linaro/pdudaemon/languages","stargazers_url":"https://api.github.com/repos/Linaro/pdudaemon/stargazers","contributors_url":"https://api.github.com/repos/Linaro/pdudaemon/contributors","subscribers_url":"https://api.github.com/repos/Linaro/pdudaemon/subscribers","subscription_url":"https://api.github.com/repos/Linaro/pdudaemon/subscription","commits_url":"https://api.github.com/repos/Linaro/pdudaemon/commits{/sha}","git_commits_url":"https://api.github.com/repos/Linaro/pdudaemon/git/commits{/sha}","comments_url":"https://api.github.com/repos/Linaro/pdudaemon/comments{/number}","issue_comment_url":"https://api.github.com/repos/Linaro/pdudaemon/issues/comments{/number}","contents_url":"https://api.github.com/repos/Linaro/pdudaemon/contents/{+path}","compare_url":"https://api.github.com/repos/Linaro/pdudaemon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Linaro/pdudaemon/merges","archive_url":"https://api.github.com/repos/Linaro/pdudaemon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Linaro/pdudaemon/downloads","issues_url":"https://api.github.com/repos/Linaro/pdudaemon/issues{/number}","pulls_url":"https://api.github.com/repos/Linaro/pdudaemon/pulls{/number}","milestones_url":"https://api.github.com/repos/Linaro/pdudaemon/milestones{/number}","notifications_url":"https://api.github.com/repos/Linaro/pdudaemon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Linaro/pdudaemon/labels{/name}","releases_url":"https://api.github.com/repos/Linaro/pdudaemon/releases{/id}","deployments_url":"https://api.github.com/repos/Linaro/pdudaemon/deployments","created_at":"2015-11-10T20:07:55Z","updated_at":"2016-03-29T10:57:24Z","pushed_at":"2016-10-25T09:40:17Z","git_url":"git://github.com/Linaro/pdudaemon.git","ssh_url":"git@github.com:Linaro/pdudaemon.git","clone_url":"https://github.com/Linaro/pdudaemon.git","svn_url":"https://github.com/Linaro/pdudaemon","homepage":null,"size":83,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":3,"forks":12,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Linaro/pdudaemon/pulls/15"},"html":{"href":"https://github.com/Linaro/pdudaemon/pull/15"},"issue":{"href":"https://api.github.com/repos/Linaro/pdudaemon/issues/15"},"comments":{"href":"https://api.github.com/repos/Linaro/pdudaemon/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/Linaro/pdudaemon/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/Linaro/pdudaemon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Linaro/pdudaemon/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/Linaro/pdudaemon/statuses/208063b2a4bfc28a430c34cb5eb9bdc4b1990ade"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":101,"deletions":108,"changed_files":6}}
{"actor":{"display_login":"sjoerd-ccu"}}