{"action":"created","comment":{"url":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/comments/182600663","pull_request_review_id":113428890,"id":182600663,"diff_hunk":"@@ -92,47 +86,39 @@ void CCTree::handle_method_entry(int method_id, int object_id, int thread_id) {\n     new_thread = true;\n     curContext = threadStarts[thread_id];\n     if (curContext) {\n-      if (debug > 0) {\n-        std::cout << \"Spawn thread 0x\" << std::hex << thread_id << std::dec\n-                  << \" -- started at \" << curContext->getMethodFullName()\n-                  << std::endl;\n-        std::cout << \"   in context\" << std::endl;\n-        printStack(curContext);\n-      }\n+      LOG(INFO) << \"Spawn thread 0x\" << std::hex << thread_id << std::dec\n+                << \" -- started at \" << curContext->getMethodFullName()\n+                << \" in context\";\n+      logStack(curContext);\n     } else {\n-      if (debug > 0) {\n-      std::cout << \"Problem: no threadStart for thread id 0x\" << std::hex\n-                << thread_id << std::dec << std::endl;\n-      }\n-      curContext = root;\n+      LOG(INFO) << \"Problem: no threadStart for thread id 0x\" << std::hex\n+                << thread_id << std::dec;\n     }\n+    curContext = root;\n   }\n \n+\n   time++;\n   depth++;\n \n   curContext = curContext->demand_child(method_id, thread_id, time);\n   curContext->incCalls();\n   theStack[thread_id] = curContext;\n \n-  if (debug > 0 || new_thread) {\n-    std::cout << \"Enter \" << curContext->getMethodFullName() << \" 0x\"\n-              << std::hex << method_id << \" thread 0x\" << thread_id << std::dec\n-         << \" at time \" << time << std::endl;\n-    if (debug > 1) {\n-      printStack(curContext);\n-    }\n+  if (new_thread) {\n+    LOG(INFO) << \"Enter \" << curContext->getMethodFullName() << \" 0x\"\n+               << std::hex << method_id << \" thread 0x\" << thread_id << std::dec\n+               << \" at time \" << time;\n+      logStack(curContext);","path":"simulator/cctree.cpp","position":null,"original_position":116,"commit_id":"d3bc76b97222a0f3636db59083647d3789301438","original_commit_id":"b50aa7793b44d6346a15e2149612ee2c4c88eee3","user":{"login":"leandrohw","id":16313257,"avatar_url":"https://avatars1.githubusercontent.com/u/16313257?v=4","gravatar_id":"","url":"https://api.github.com/users/leandrohw","html_url":"https://github.com/leandrohw","followers_url":"https://api.github.com/users/leandrohw/followers","following_url":"https://api.github.com/users/leandrohw/following{/other_user}","gists_url":"https://api.github.com/users/leandrohw/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrohw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrohw/subscriptions","organizations_url":"https://api.github.com/users/leandrohw/orgs","repos_url":"https://api.github.com/users/leandrohw/repos","events_url":"https://api.github.com/users/leandrohw/events{/privacy}","received_events_url":"https://api.github.com/users/leandrohw/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2018-04-18T23:45:47Z","updated_at":"2018-04-18T23:45:47Z","html_url":"https://github.com/leandrohw/et2-simulator/pull/4#discussion_r182600663","pull_request_url":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/4","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/comments/182600663"},"html":{"href":"https://github.com/leandrohw/et2-simulator/pull/4#discussion_r182600663"},"pull_request":{"href":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/4"}},"in_reply_to_id":182590856},"pull_request":{"url":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/4","id":181936713,"html_url":"https://github.com/leandrohw/et2-simulator/pull/4","diff_url":"https://github.com/leandrohw/et2-simulator/pull/4.diff","patch_url":"https://github.com/leandrohw/et2-simulator/pull/4.patch","issue_url":"https://api.github.com/repos/leandrohw/et2-simulator/issues/4","number":4,"state":"open","locked":false,"title":"Logging","user":{"login":"leandrohw","id":16313257,"avatar_url":"https://avatars1.githubusercontent.com/u/16313257?v=4","gravatar_id":"","url":"https://api.github.com/users/leandrohw","html_url":"https://github.com/leandrohw","followers_url":"https://api.github.com/users/leandrohw/followers","following_url":"https://api.github.com/users/leandrohw/following{/other_user}","gists_url":"https://api.github.com/users/leandrohw/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrohw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrohw/subscriptions","organizations_url":"https://api.github.com/users/leandrohw/orgs","repos_url":"https://api.github.com/users/leandrohw/repos","events_url":"https://api.github.com/users/leandrohw/events{/privacy}","received_events_url":"https://api.github.com/users/leandrohw/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-16T17:33:32Z","updated_at":"2018-04-18T23:45:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a6ea98a9ae986b636a6b5553f0e70b27c280a65","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/4/commits","review_comments_url":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/4/comments","review_comment_url":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leandrohw/et2-simulator/issues/4/comments","statuses_url":"https://api.github.com/repos/leandrohw/et2-simulator/statuses/d3bc76b97222a0f3636db59083647d3789301438","head":{"label":"leandrohw:logging","ref":"logging","sha":"d3bc76b97222a0f3636db59083647d3789301438","user":{"login":"leandrohw","id":16313257,"avatar_url":"https://avatars1.githubusercontent.com/u/16313257?v=4","gravatar_id":"","url":"https://api.github.com/users/leandrohw","html_url":"https://github.com/leandrohw","followers_url":"https://api.github.com/users/leandrohw/followers","following_url":"https://api.github.com/users/leandrohw/following{/other_user}","gists_url":"https://api.github.com/users/leandrohw/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrohw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrohw/subscriptions","organizations_url":"https://api.github.com/users/leandrohw/orgs","repos_url":"https://api.github.com/users/leandrohw/repos","events_url":"https://api.github.com/users/leandrohw/events{/privacy}","received_events_url":"https://api.github.com/users/leandrohw/received_events","type":"User","site_admin":false},"repo":{"id":128278475,"name":"et2-simulator","full_name":"leandrohw/et2-simulator","owner":{"login":"leandrohw","id":16313257,"avatar_url":"https://avatars1.githubusercontent.com/u/16313257?v=4","gravatar_id":"","url":"https://api.github.com/users/leandrohw","html_url":"https://github.com/leandrohw","followers_url":"https://api.github.com/users/leandrohw/followers","following_url":"https://api.github.com/users/leandrohw/following{/other_user}","gists_url":"https://api.github.com/users/leandrohw/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrohw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrohw/subscriptions","organizations_url":"https://api.github.com/users/leandrohw/orgs","repos_url":"https://api.github.com/users/leandrohw/repos","events_url":"https://api.github.com/users/leandrohw/events{/privacy}","received_events_url":"https://api.github.com/users/leandrohw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leandrohw/et2-simulator","description":"C++ program for reading ET2 trace files and computing precise death times","fork":true,"url":"https://api.github.com/repos/leandrohw/et2-simulator","forks_url":"https://api.github.com/repos/leandrohw/et2-simulator/forks","keys_url":"https://api.github.com/repos/leandrohw/et2-simulator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leandrohw/et2-simulator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leandrohw/et2-simulator/teams","hooks_url":"https://api.github.com/repos/leandrohw/et2-simulator/hooks","issue_events_url":"https://api.github.com/repos/leandrohw/et2-simulator/issues/events{/number}","events_url":"https://api.github.com/repos/leandrohw/et2-simulator/events","assignees_url":"https://api.github.com/repos/leandrohw/et2-simulator/assignees{/user}","branches_url":"https://api.github.com/repos/leandrohw/et2-simulator/branches{/branch}","tags_url":"https://api.github.com/repos/leandrohw/et2-simulator/tags","blobs_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/refs{/sha}","trees_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leandrohw/et2-simulator/statuses/{sha}","languages_url":"https://api.github.com/repos/leandrohw/et2-simulator/languages","stargazers_url":"https://api.github.com/repos/leandrohw/et2-simulator/stargazers","contributors_url":"https://api.github.com/repos/leandrohw/et2-simulator/contributors","subscribers_url":"https://api.github.com/repos/leandrohw/et2-simulator/subscribers","subscription_url":"https://api.github.com/repos/leandrohw/et2-simulator/subscription","commits_url":"https://api.github.com/repos/leandrohw/et2-simulator/commits{/sha}","git_commits_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/commits{/sha}","comments_url":"https://api.github.com/repos/leandrohw/et2-simulator/comments{/number}","issue_comment_url":"https://api.github.com/repos/leandrohw/et2-simulator/issues/comments{/number}","contents_url":"https://api.github.com/repos/leandrohw/et2-simulator/contents/{+path}","compare_url":"https://api.github.com/repos/leandrohw/et2-simulator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leandrohw/et2-simulator/merges","archive_url":"https://api.github.com/repos/leandrohw/et2-simulator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leandrohw/et2-simulator/downloads","issues_url":"https://api.github.com/repos/leandrohw/et2-simulator/issues{/number}","pulls_url":"https://api.github.com/repos/leandrohw/et2-simulator/pulls{/number}","milestones_url":"https://api.github.com/repos/leandrohw/et2-simulator/milestones{/number}","notifications_url":"https://api.github.com/repos/leandrohw/et2-simulator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leandrohw/et2-simulator/labels{/name}","releases_url":"https://api.github.com/repos/leandrohw/et2-simulator/releases{/id}","deployments_url":"https://api.github.com/repos/leandrohw/et2-simulator/deployments","created_at":"2018-04-06T00:13:03Z","updated_at":"2018-04-18T21:02:35Z","pushed_at":"2018-04-18T23:44:30Z","git_url":"git://github.com/leandrohw/et2-simulator.git","ssh_url":"git@github.com:leandrohw/et2-simulator.git","clone_url":"https://github.com/leandrohw/et2-simulator.git","svn_url":"https://github.com/leandrohw/et2-simulator","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"leandrohw:master","ref":"master","sha":"2f0b85e86c2e42e685fd8a53e936b8328486b5fb","user":{"login":"leandrohw","id":16313257,"avatar_url":"https://avatars1.githubusercontent.com/u/16313257?v=4","gravatar_id":"","url":"https://api.github.com/users/leandrohw","html_url":"https://github.com/leandrohw","followers_url":"https://api.github.com/users/leandrohw/followers","following_url":"https://api.github.com/users/leandrohw/following{/other_user}","gists_url":"https://api.github.com/users/leandrohw/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrohw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrohw/subscriptions","organizations_url":"https://api.github.com/users/leandrohw/orgs","repos_url":"https://api.github.com/users/leandrohw/repos","events_url":"https://api.github.com/users/leandrohw/events{/privacy}","received_events_url":"https://api.github.com/users/leandrohw/received_events","type":"User","site_admin":false},"repo":{"id":128278475,"name":"et2-simulator","full_name":"leandrohw/et2-simulator","owner":{"login":"leandrohw","id":16313257,"avatar_url":"https://avatars1.githubusercontent.com/u/16313257?v=4","gravatar_id":"","url":"https://api.github.com/users/leandrohw","html_url":"https://github.com/leandrohw","followers_url":"https://api.github.com/users/leandrohw/followers","following_url":"https://api.github.com/users/leandrohw/following{/other_user}","gists_url":"https://api.github.com/users/leandrohw/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrohw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrohw/subscriptions","organizations_url":"https://api.github.com/users/leandrohw/orgs","repos_url":"https://api.github.com/users/leandrohw/repos","events_url":"https://api.github.com/users/leandrohw/events{/privacy}","received_events_url":"https://api.github.com/users/leandrohw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leandrohw/et2-simulator","description":"C++ program for reading ET2 trace files and computing precise death times","fork":true,"url":"https://api.github.com/repos/leandrohw/et2-simulator","forks_url":"https://api.github.com/repos/leandrohw/et2-simulator/forks","keys_url":"https://api.github.com/repos/leandrohw/et2-simulator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leandrohw/et2-simulator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leandrohw/et2-simulator/teams","hooks_url":"https://api.github.com/repos/leandrohw/et2-simulator/hooks","issue_events_url":"https://api.github.com/repos/leandrohw/et2-simulator/issues/events{/number}","events_url":"https://api.github.com/repos/leandrohw/et2-simulator/events","assignees_url":"https://api.github.com/repos/leandrohw/et2-simulator/assignees{/user}","branches_url":"https://api.github.com/repos/leandrohw/et2-simulator/branches{/branch}","tags_url":"https://api.github.com/repos/leandrohw/et2-simulator/tags","blobs_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/refs{/sha}","trees_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leandrohw/et2-simulator/statuses/{sha}","languages_url":"https://api.github.com/repos/leandrohw/et2-simulator/languages","stargazers_url":"https://api.github.com/repos/leandrohw/et2-simulator/stargazers","contributors_url":"https://api.github.com/repos/leandrohw/et2-simulator/contributors","subscribers_url":"https://api.github.com/repos/leandrohw/et2-simulator/subscribers","subscription_url":"https://api.github.com/repos/leandrohw/et2-simulator/subscription","commits_url":"https://api.github.com/repos/leandrohw/et2-simulator/commits{/sha}","git_commits_url":"https://api.github.com/repos/leandrohw/et2-simulator/git/commits{/sha}","comments_url":"https://api.github.com/repos/leandrohw/et2-simulator/comments{/number}","issue_comment_url":"https://api.github.com/repos/leandrohw/et2-simulator/issues/comments{/number}","contents_url":"https://api.github.com/repos/leandrohw/et2-simulator/contents/{+path}","compare_url":"https://api.github.com/repos/leandrohw/et2-simulator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leandrohw/et2-simulator/merges","archive_url":"https://api.github.com/repos/leandrohw/et2-simulator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leandrohw/et2-simulator/downloads","issues_url":"https://api.github.com/repos/leandrohw/et2-simulator/issues{/number}","pulls_url":"https://api.github.com/repos/leandrohw/et2-simulator/pulls{/number}","milestones_url":"https://api.github.com/repos/leandrohw/et2-simulator/milestones{/number}","notifications_url":"https://api.github.com/repos/leandrohw/et2-simulator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leandrohw/et2-simulator/labels{/name}","releases_url":"https://api.github.com/repos/leandrohw/et2-simulator/releases{/id}","deployments_url":"https://api.github.com/repos/leandrohw/et2-simulator/deployments","created_at":"2018-04-06T00:13:03Z","updated_at":"2018-04-18T21:02:35Z","pushed_at":"2018-04-18T23:44:30Z","git_url":"git://github.com/leandrohw/et2-simulator.git","ssh_url":"git@github.com:leandrohw/et2-simulator.git","clone_url":"https://github.com/leandrohw/et2-simulator.git","svn_url":"https://github.com/leandrohw/et2-simulator","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/4"},"html":{"href":"https://github.com/leandrohw/et2-simulator/pull/4"},"issue":{"href":"https://api.github.com/repos/leandrohw/et2-simulator/issues/4"},"comments":{"href":"https://api.github.com/repos/leandrohw/et2-simulator/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leandrohw/et2-simulator/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/leandrohw/et2-simulator/statuses/d3bc76b97222a0f3636db59083647d3789301438"}},"author_association":"OWNER"}}
{"actor":{"display_login":"leandrohw"}}