{"action":"created","comment":{"url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/comments/66704289","id":66704289,"diff_hunk":"@@ -0,0 +1,32 @@\n+require('app-module-path').addPath(__dirname + '../../app');\n+\n+var path = require('path');\n+\n+var nconf = require('nconf');\n+var bunyan = require('bunyan');\n+\n+formatBunyanInfoLog = function() {};\n+formatBunyanInfoLog.prototype.write = function (rec) {\n+    console.log('[%s] %s: %s',\n+        rec.time,\n+        bunyan.nameFromLevel[rec.level],\n+        rec.msg);\n+};\n+\n+logger = bunyan.createLogger({\n+    name: 'Bitcannon',","path":"background/logging.js","position":17,"original_position":17,"commit_id":"382c9797ca16840fd4e02f96390d7f5af4ce5e9a","original_commit_id":"382c9797ca16840fd4e02f96390d7f5af4ce5e9a","user":{"login":"OmgImAlexis","id":6525926,"avatar_url":"https://avatars.githubusercontent.com/u/6525926?v=3","gravatar_id":"","url":"https://api.github.com/users/OmgImAlexis","html_url":"https://github.com/OmgImAlexis","followers_url":"https://api.github.com/users/OmgImAlexis/followers","following_url":"https://api.github.com/users/OmgImAlexis/following{/other_user}","gists_url":"https://api.github.com/users/OmgImAlexis/gists{/gist_id}","starred_url":"https://api.github.com/users/OmgImAlexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmgImAlexis/subscriptions","organizations_url":"https://api.github.com/users/OmgImAlexis/orgs","repos_url":"https://api.github.com/users/OmgImAlexis/repos","events_url":"https://api.github.com/users/OmgImAlexis/events{/privacy}","received_events_url":"https://api.github.com/users/OmgImAlexis/received_events","type":"User","site_admin":false},"body":"This should also be showing that the logs are coming from the web interface since we wanted to modalise this and break it into separate processes.","created_at":"2016-06-11T10:26:09Z","updated_at":"2016-06-11T10:26:09Z","html_url":"https://github.com/bitcannon-org/bitcannon-web/pull/22#discussion_r66704289","pull_request_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/comments/66704289"},"html":{"href":"https://github.com/bitcannon-org/bitcannon-web/pull/22#discussion_r66704289"},"pull_request":{"href":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/22","id":57728941,"html_url":"https://github.com/bitcannon-org/bitcannon-web/pull/22","diff_url":"https://github.com/bitcannon-org/bitcannon-web/pull/22.diff","patch_url":"https://github.com/bitcannon-org/bitcannon-web/pull/22.patch","issue_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/issues/22","number":22,"state":"open","locked":false,"title":"Split imports.js into seperate modules","user":{"login":"aidanharris","id":3309784,"avatar_url":"https://avatars.githubusercontent.com/u/3309784?v=3","gravatar_id":"","url":"https://api.github.com/users/aidanharris","html_url":"https://github.com/aidanharris","followers_url":"https://api.github.com/users/aidanharris/followers","following_url":"https://api.github.com/users/aidanharris/following{/other_user}","gists_url":"https://api.github.com/users/aidanharris/gists{/gist_id}","starred_url":"https://api.github.com/users/aidanharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidanharris/subscriptions","organizations_url":"https://api.github.com/users/aidanharris/orgs","repos_url":"https://api.github.com/users/aidanharris/repos","events_url":"https://api.github.com/users/aidanharris/events{/privacy}","received_events_url":"https://api.github.com/users/aidanharris/received_events","type":"User","site_admin":false},"body":"There's a fair bit of duplicated code at the top of each module that could be significantly reduced by making a common 'provider' module that each provider includes.","created_at":"2016-01-30T03:35:58Z","updated_at":"2016-06-11T10:26:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c5692c027b74abf58465db7dfea43183ae304a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/22/commits","review_comments_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/22/comments","review_comment_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/issues/22/comments","statuses_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/statuses/382c9797ca16840fd4e02f96390d7f5af4ce5e9a","head":{"label":"aidanharris:develop","ref":"develop","sha":"382c9797ca16840fd4e02f96390d7f5af4ce5e9a","user":{"login":"aidanharris","id":3309784,"avatar_url":"https://avatars.githubusercontent.com/u/3309784?v=3","gravatar_id":"","url":"https://api.github.com/users/aidanharris","html_url":"https://github.com/aidanharris","followers_url":"https://api.github.com/users/aidanharris/followers","following_url":"https://api.github.com/users/aidanharris/following{/other_user}","gists_url":"https://api.github.com/users/aidanharris/gists{/gist_id}","starred_url":"https://api.github.com/users/aidanharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidanharris/subscriptions","organizations_url":"https://api.github.com/users/aidanharris/orgs","repos_url":"https://api.github.com/users/aidanharris/repos","events_url":"https://api.github.com/users/aidanharris/events{/privacy}","received_events_url":"https://api.github.com/users/aidanharris/received_events","type":"User","site_admin":false},"repo":{"id":50706860,"name":"bitcannon-web","full_name":"aidanharris/bitcannon-web","owner":{"login":"aidanharris","id":3309784,"avatar_url":"https://avatars.githubusercontent.com/u/3309784?v=3","gravatar_id":"","url":"https://api.github.com/users/aidanharris","html_url":"https://github.com/aidanharris","followers_url":"https://api.github.com/users/aidanharris/followers","following_url":"https://api.github.com/users/aidanharris/following{/other_user}","gists_url":"https://api.github.com/users/aidanharris/gists{/gist_id}","starred_url":"https://api.github.com/users/aidanharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidanharris/subscriptions","organizations_url":"https://api.github.com/users/aidanharris/orgs","repos_url":"https://api.github.com/users/aidanharris/repos","events_url":"https://api.github.com/users/aidanharris/events{/privacy}","received_events_url":"https://api.github.com/users/aidanharris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aidanharris/bitcannon-web","description":"A torrent site mirroring tool","fork":true,"url":"https://api.github.com/repos/aidanharris/bitcannon-web","forks_url":"https://api.github.com/repos/aidanharris/bitcannon-web/forks","keys_url":"https://api.github.com/repos/aidanharris/bitcannon-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aidanharris/bitcannon-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aidanharris/bitcannon-web/teams","hooks_url":"https://api.github.com/repos/aidanharris/bitcannon-web/hooks","issue_events_url":"https://api.github.com/repos/aidanharris/bitcannon-web/issues/events{/number}","events_url":"https://api.github.com/repos/aidanharris/bitcannon-web/events","assignees_url":"https://api.github.com/repos/aidanharris/bitcannon-web/assignees{/user}","branches_url":"https://api.github.com/repos/aidanharris/bitcannon-web/branches{/branch}","tags_url":"https://api.github.com/repos/aidanharris/bitcannon-web/tags","blobs_url":"https://api.github.com/repos/aidanharris/bitcannon-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aidanharris/bitcannon-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aidanharris/bitcannon-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/aidanharris/bitcannon-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aidanharris/bitcannon-web/statuses/{sha}","languages_url":"https://api.github.com/repos/aidanharris/bitcannon-web/languages","stargazers_url":"https://api.github.com/repos/aidanharris/bitcannon-web/stargazers","contributors_url":"https://api.github.com/repos/aidanharris/bitcannon-web/contributors","subscribers_url":"https://api.github.com/repos/aidanharris/bitcannon-web/subscribers","subscription_url":"https://api.github.com/repos/aidanharris/bitcannon-web/subscription","commits_url":"https://api.github.com/repos/aidanharris/bitcannon-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/aidanharris/bitcannon-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/aidanharris/bitcannon-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/aidanharris/bitcannon-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/aidanharris/bitcannon-web/contents/{+path}","compare_url":"https://api.github.com/repos/aidanharris/bitcannon-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aidanharris/bitcannon-web/merges","archive_url":"https://api.github.com/repos/aidanharris/bitcannon-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aidanharris/bitcannon-web/downloads","issues_url":"https://api.github.com/repos/aidanharris/bitcannon-web/issues{/number}","pulls_url":"https://api.github.com/repos/aidanharris/bitcannon-web/pulls{/number}","milestones_url":"https://api.github.com/repos/aidanharris/bitcannon-web/milestones{/number}","notifications_url":"https://api.github.com/repos/aidanharris/bitcannon-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aidanharris/bitcannon-web/labels{/name}","releases_url":"https://api.github.com/repos/aidanharris/bitcannon-web/releases{/id}","deployments_url":"https://api.github.com/repos/aidanharris/bitcannon-web/deployments","created_at":"2016-01-30T03:28:46Z","updated_at":"2016-01-30T03:28:46Z","pushed_at":"2016-02-08T03:36:22Z","git_url":"git://github.com/aidanharris/bitcannon-web.git","ssh_url":"git@github.com:aidanharris/bitcannon-web.git","clone_url":"https://github.com/aidanharris/bitcannon-web.git","svn_url":"https://github.com/aidanharris/bitcannon-web","homepage":"http://bitcannon.io","size":135,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"bitcannon-org:develop","ref":"develop","sha":"e57a577ba6660697c61226b77f0182147e781e62","user":{"login":"bitcannon-org","id":15809992,"avatar_url":"https://avatars.githubusercontent.com/u/15809992?v=3","gravatar_id":"","url":"https://api.github.com/users/bitcannon-org","html_url":"https://github.com/bitcannon-org","followers_url":"https://api.github.com/users/bitcannon-org/followers","following_url":"https://api.github.com/users/bitcannon-org/following{/other_user}","gists_url":"https://api.github.com/users/bitcannon-org/gists{/gist_id}","starred_url":"https://api.github.com/users/bitcannon-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitcannon-org/subscriptions","organizations_url":"https://api.github.com/users/bitcannon-org/orgs","repos_url":"https://api.github.com/users/bitcannon-org/repos","events_url":"https://api.github.com/users/bitcannon-org/events{/privacy}","received_events_url":"https://api.github.com/users/bitcannon-org/received_events","type":"Organization","site_admin":false},"repo":{"id":46055309,"name":"bitcannon-web","full_name":"bitcannon-org/bitcannon-web","owner":{"login":"bitcannon-org","id":15809992,"avatar_url":"https://avatars.githubusercontent.com/u/15809992?v=3","gravatar_id":"","url":"https://api.github.com/users/bitcannon-org","html_url":"https://github.com/bitcannon-org","followers_url":"https://api.github.com/users/bitcannon-org/followers","following_url":"https://api.github.com/users/bitcannon-org/following{/other_user}","gists_url":"https://api.github.com/users/bitcannon-org/gists{/gist_id}","starred_url":"https://api.github.com/users/bitcannon-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitcannon-org/subscriptions","organizations_url":"https://api.github.com/users/bitcannon-org/orgs","repos_url":"https://api.github.com/users/bitcannon-org/repos","events_url":"https://api.github.com/users/bitcannon-org/events{/privacy}","received_events_url":"https://api.github.com/users/bitcannon-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitcannon-org/bitcannon-web","description":"A torrent site mirroring tool","fork":false,"url":"https://api.github.com/repos/bitcannon-org/bitcannon-web","forks_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/forks","keys_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/teams","hooks_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/hooks","issue_events_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/issues/events{/number}","events_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/events","assignees_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/assignees{/user}","branches_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/branches{/branch}","tags_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/tags","blobs_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/statuses/{sha}","languages_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/languages","stargazers_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/stargazers","contributors_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/contributors","subscribers_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/subscribers","subscription_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/subscription","commits_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/contents/{+path}","compare_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/merges","archive_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/downloads","issues_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/issues{/number}","pulls_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls{/number}","milestones_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/milestones{/number}","notifications_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/labels{/name}","releases_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/releases{/id}","deployments_url":"https://api.github.com/repos/bitcannon-org/bitcannon-web/deployments","created_at":"2015-11-12T13:40:07Z","updated_at":"2016-02-22T20:07:34Z","pushed_at":"2016-02-05T22:31:51Z","git_url":"git://github.com/bitcannon-org/bitcannon-web.git","ssh_url":"git@github.com:bitcannon-org/bitcannon-web.git","clone_url":"https://github.com/bitcannon-org/bitcannon-web.git","svn_url":"https://github.com/bitcannon-org/bitcannon-web","homepage":"http://bitcannon.io","size":127,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/22"},"html":{"href":"https://github.com/bitcannon-org/bitcannon-web/pull/22"},"issue":{"href":"https://api.github.com/repos/bitcannon-org/bitcannon-web/issues/22"},"comments":{"href":"https://api.github.com/repos/bitcannon-org/bitcannon-web/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitcannon-org/bitcannon-web/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/bitcannon-org/bitcannon-web/statuses/382c9797ca16840fd4e02f96390d7f5af4ce5e9a"}}}}
{"actor":{"display_login":"OmgImAlexis"}}