{"action":"created","comment":{"url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/comments/230581600","pull_request_review_id":171355347,"id":230581600,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDU4MTYwMA==","diff_hunk":"@@ -107,6 +110,13 @@ public static function get_instance()\n \t */\n \tpublic function send_event($data, $event_type, $timeout = 5000)\n \t{\n+        //WP internal logging for incoming events. TODO: Once we have tested sending events to the API properly, delete this.\n+        // Needs in wp-config.php\n+        // define('WP_DEBUG', true);\n+        // define('WP_DEBUG_LOG', true);\n+        // The log will be in wp-content\n+        error_log($event_type);\n+        error_log(print_r($data,true));","path":"src/includes/class-recommender-api.php","position":20,"original_position":20,"commit_id":"2c47fcbd4b2cf22013d1c4b355c0544ef9b7fecd","original_commit_id":"2c47fcbd4b2cf22013d1c4b355c0544ef9b7fecd","user":{"login":"StiivoSiider","id":18610306,"node_id":"MDQ6VXNlcjE4NjEwMzA2","avatar_url":"https://avatars3.githubusercontent.com/u/18610306?v=4","gravatar_id":"","url":"https://api.github.com/users/StiivoSiider","html_url":"https://github.com/StiivoSiider","followers_url":"https://api.github.com/users/StiivoSiider/followers","following_url":"https://api.github.com/users/StiivoSiider/following{/other_user}","gists_url":"https://api.github.com/users/StiivoSiider/gists{/gist_id}","starred_url":"https://api.github.com/users/StiivoSiider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StiivoSiider/subscriptions","organizations_url":"https://api.github.com/users/StiivoSiider/orgs","repos_url":"https://api.github.com/users/StiivoSiider/repos","events_url":"https://api.github.com/users/StiivoSiider/events{/privacy}","received_events_url":"https://api.github.com/users/StiivoSiider/received_events","type":"User","site_admin":false},"body":"Can we log these with our logger as well? We can then use our own log for testing purposes.","created_at":"2018-11-04T09:38:31Z","updated_at":"2018-11-04T09:39:32Z","html_url":"https://github.com/stacc-dasso/woocommerce-extension/pull/55#discussion_r230581600","pull_request_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/55","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/comments/230581600"},"html":{"href":"https://github.com/stacc-dasso/woocommerce-extension/pull/55#discussion_r230581600"},"pull_request":{"href":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/55","id":228149804,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MTQ5ODA0","html_url":"https://github.com/stacc-dasso/woocommerce-extension/pull/55","diff_url":"https://github.com/stacc-dasso/woocommerce-extension/pull/55.diff","patch_url":"https://github.com/stacc-dasso/woocommerce-extension/pull/55.patch","issue_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues/55","number":55,"state":"open","locked":false,"title":"Added WooCommerce logger #34.","user":{"login":"ilysion","id":26143107,"node_id":"MDQ6VXNlcjI2MTQzMTA3","avatar_url":"https://avatars1.githubusercontent.com/u/26143107?v=4","gravatar_id":"","url":"https://api.github.com/users/ilysion","html_url":"https://github.com/ilysion","followers_url":"https://api.github.com/users/ilysion/followers","following_url":"https://api.github.com/users/ilysion/following{/other_user}","gists_url":"https://api.github.com/users/ilysion/gists{/gist_id}","starred_url":"https://api.github.com/users/ilysion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilysion/subscriptions","organizations_url":"https://api.github.com/users/ilysion/orgs","repos_url":"https://api.github.com/users/ilysion/repos","events_url":"https://api.github.com/users/ilysion/events{/privacy}","received_events_url":"https://api.github.com/users/ilysion/received_events","type":"User","site_admin":false},"body":"Logging in some places #34","created_at":"2018-11-04T00:34:50Z","updated_at":"2018-11-04T09:39:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2de38734296edda996dbb660318156152399d9fb","assignee":null,"assignees":[],"requested_reviewers":[{"login":"martin457","id":43203972,"node_id":"MDQ6VXNlcjQzMjAzOTcy","avatar_url":"https://avatars3.githubusercontent.com/u/43203972?v=4","gravatar_id":"","url":"https://api.github.com/users/martin457","html_url":"https://github.com/martin457","followers_url":"https://api.github.com/users/martin457/followers","following_url":"https://api.github.com/users/martin457/following{/other_user}","gists_url":"https://api.github.com/users/martin457/gists{/gist_id}","starred_url":"https://api.github.com/users/martin457/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin457/subscriptions","organizations_url":"https://api.github.com/users/martin457/orgs","repos_url":"https://api.github.com/users/martin457/repos","events_url":"https://api.github.com/users/martin457/events{/privacy}","received_events_url":"https://api.github.com/users/martin457/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/milestones/3","html_url":"https://github.com/stacc-dasso/woocommerce-extension/milestone/3","labels_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/milestones/3/labels","id":3680643,"node_id":"MDk6TWlsZXN0b25lMzY4MDY0Mw==","number":3,"title":"Iteration 3","description":"","creator":{"login":"Starrimus","id":23232949,"node_id":"MDQ6VXNlcjIzMjMyOTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/23232949?v=4","gravatar_id":"","url":"https://api.github.com/users/Starrimus","html_url":"https://github.com/Starrimus","followers_url":"https://api.github.com/users/Starrimus/followers","following_url":"https://api.github.com/users/Starrimus/following{/other_user}","gists_url":"https://api.github.com/users/Starrimus/gists{/gist_id}","starred_url":"https://api.github.com/users/Starrimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starrimus/subscriptions","organizations_url":"https://api.github.com/users/Starrimus/orgs","repos_url":"https://api.github.com/users/Starrimus/repos","events_url":"https://api.github.com/users/Starrimus/events{/privacy}","received_events_url":"https://api.github.com/users/Starrimus/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":1,"state":"open","created_at":"2018-09-23T17:43:54Z","updated_at":"2018-11-04T01:37:30Z","due_on":"2018-11-12T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/55/commits","review_comments_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/55/comments","review_comment_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues/55/comments","statuses_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/statuses/2c47fcbd4b2cf22013d1c4b355c0544ef9b7fecd","head":{"label":"stacc-dasso:origin/feature/logging","ref":"origin/feature/logging","sha":"2c47fcbd4b2cf22013d1c4b355c0544ef9b7fecd","user":{"login":"stacc-dasso","id":41417315,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDE3MzE1","avatar_url":"https://avatars3.githubusercontent.com/u/41417315?v=4","gravatar_id":"","url":"https://api.github.com/users/stacc-dasso","html_url":"https://github.com/stacc-dasso","followers_url":"https://api.github.com/users/stacc-dasso/followers","following_url":"https://api.github.com/users/stacc-dasso/following{/other_user}","gists_url":"https://api.github.com/users/stacc-dasso/gists{/gist_id}","starred_url":"https://api.github.com/users/stacc-dasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacc-dasso/subscriptions","organizations_url":"https://api.github.com/users/stacc-dasso/orgs","repos_url":"https://api.github.com/users/stacc-dasso/repos","events_url":"https://api.github.com/users/stacc-dasso/events{/privacy}","received_events_url":"https://api.github.com/users/stacc-dasso/received_events","type":"Organization","site_admin":false},"repo":{"id":149555160,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1NTUxNjA=","name":"woocommerce-extension","full_name":"stacc-dasso/woocommerce-extension","private":false,"owner":{"login":"stacc-dasso","id":41417315,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDE3MzE1","avatar_url":"https://avatars3.githubusercontent.com/u/41417315?v=4","gravatar_id":"","url":"https://api.github.com/users/stacc-dasso","html_url":"https://github.com/stacc-dasso","followers_url":"https://api.github.com/users/stacc-dasso/followers","following_url":"https://api.github.com/users/stacc-dasso/following{/other_user}","gists_url":"https://api.github.com/users/stacc-dasso/gists{/gist_id}","starred_url":"https://api.github.com/users/stacc-dasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacc-dasso/subscriptions","organizations_url":"https://api.github.com/users/stacc-dasso/orgs","repos_url":"https://api.github.com/users/stacc-dasso/repos","events_url":"https://api.github.com/users/stacc-dasso/events{/privacy}","received_events_url":"https://api.github.com/users/stacc-dasso/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/stacc-dasso/woocommerce-extension","description":"A Woocommerce extension that will communicate with STACC's API","fork":false,"url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension","forks_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/forks","keys_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/teams","hooks_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/hooks","issue_events_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues/events{/number}","events_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/events","assignees_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/assignees{/user}","branches_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/branches{/branch}","tags_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/tags","blobs_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/refs{/sha}","trees_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/statuses/{sha}","languages_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/languages","stargazers_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/stargazers","contributors_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/contributors","subscribers_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/subscribers","subscription_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/subscription","commits_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/commits{/sha}","git_commits_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/commits{/sha}","comments_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/comments{/number}","issue_comment_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues/comments{/number}","contents_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/contents/{+path}","compare_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/merges","archive_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/downloads","issues_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues{/number}","pulls_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls{/number}","milestones_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/milestones{/number}","notifications_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/labels{/name}","releases_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/releases{/id}","deployments_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/deployments","created_at":"2018-09-20T05:17:40Z","updated_at":"2018-10-14T19:03:17Z","pushed_at":"2018-11-04T01:08:14Z","git_url":"git://github.com/stacc-dasso/woocommerce-extension.git","ssh_url":"git@github.com:stacc-dasso/woocommerce-extension.git","clone_url":"https://github.com/stacc-dasso/woocommerce-extension.git","svn_url":"https://github.com/stacc-dasso/woocommerce-extension","homepage":"","size":108,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"stacc-dasso:master","ref":"master","sha":"6178f5c0c518e4dfa19e11749ae7c4abe7c7374b","user":{"login":"stacc-dasso","id":41417315,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDE3MzE1","avatar_url":"https://avatars3.githubusercontent.com/u/41417315?v=4","gravatar_id":"","url":"https://api.github.com/users/stacc-dasso","html_url":"https://github.com/stacc-dasso","followers_url":"https://api.github.com/users/stacc-dasso/followers","following_url":"https://api.github.com/users/stacc-dasso/following{/other_user}","gists_url":"https://api.github.com/users/stacc-dasso/gists{/gist_id}","starred_url":"https://api.github.com/users/stacc-dasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacc-dasso/subscriptions","organizations_url":"https://api.github.com/users/stacc-dasso/orgs","repos_url":"https://api.github.com/users/stacc-dasso/repos","events_url":"https://api.github.com/users/stacc-dasso/events{/privacy}","received_events_url":"https://api.github.com/users/stacc-dasso/received_events","type":"Organization","site_admin":false},"repo":{"id":149555160,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1NTUxNjA=","name":"woocommerce-extension","full_name":"stacc-dasso/woocommerce-extension","private":false,"owner":{"login":"stacc-dasso","id":41417315,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDE3MzE1","avatar_url":"https://avatars3.githubusercontent.com/u/41417315?v=4","gravatar_id":"","url":"https://api.github.com/users/stacc-dasso","html_url":"https://github.com/stacc-dasso","followers_url":"https://api.github.com/users/stacc-dasso/followers","following_url":"https://api.github.com/users/stacc-dasso/following{/other_user}","gists_url":"https://api.github.com/users/stacc-dasso/gists{/gist_id}","starred_url":"https://api.github.com/users/stacc-dasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacc-dasso/subscriptions","organizations_url":"https://api.github.com/users/stacc-dasso/orgs","repos_url":"https://api.github.com/users/stacc-dasso/repos","events_url":"https://api.github.com/users/stacc-dasso/events{/privacy}","received_events_url":"https://api.github.com/users/stacc-dasso/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/stacc-dasso/woocommerce-extension","description":"A Woocommerce extension that will communicate with STACC's API","fork":false,"url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension","forks_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/forks","keys_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/teams","hooks_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/hooks","issue_events_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues/events{/number}","events_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/events","assignees_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/assignees{/user}","branches_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/branches{/branch}","tags_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/tags","blobs_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/refs{/sha}","trees_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/statuses/{sha}","languages_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/languages","stargazers_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/stargazers","contributors_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/contributors","subscribers_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/subscribers","subscription_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/subscription","commits_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/commits{/sha}","git_commits_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/git/commits{/sha}","comments_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/comments{/number}","issue_comment_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues/comments{/number}","contents_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/contents/{+path}","compare_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/merges","archive_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/downloads","issues_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues{/number}","pulls_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls{/number}","milestones_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/milestones{/number}","notifications_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/labels{/name}","releases_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/releases{/id}","deployments_url":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/deployments","created_at":"2018-09-20T05:17:40Z","updated_at":"2018-10-14T19:03:17Z","pushed_at":"2018-11-04T01:08:14Z","git_url":"git://github.com/stacc-dasso/woocommerce-extension.git","ssh_url":"git@github.com:stacc-dasso/woocommerce-extension.git","clone_url":"https://github.com/stacc-dasso/woocommerce-extension.git","svn_url":"https://github.com/stacc-dasso/woocommerce-extension","homepage":"","size":108,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/55"},"html":{"href":"https://github.com/stacc-dasso/woocommerce-extension/pull/55"},"issue":{"href":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues/55"},"comments":{"href":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/stacc-dasso/woocommerce-extension/statuses/2c47fcbd4b2cf22013d1c4b355c0544ef9b7fecd"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"StiivoSiider"}}