{"action":"created","comment":{"url":"https://api.github.com/repos/potentialventures/cocotb/pulls/comments/35428326","id":35428326,"diff_hunk":"@@ -57,7 +57,17 @@\n if \"SPHINX_BUILD\" not in os.environ:\n     logging.basicConfig()\n     logging.setLoggerClass(SimBaseLog)\n-    log = SimLog('cocotb.gpi')\n+    log = SimLog('cocotb')\n+    _default_log = logging.INFO\n+    if \"COCOTB_LOG_LEVEL\" in os.environ:\n+        level = os.getenv(\"COCOTB_LOG_LEVEL\")\n+        try:\n+            _default_log = getattr(logging, level)\n+        except AttributeError as e:\n+            pass","path":"cocotb/__init__.py","position":12,"original_position":12,"commit_id":"7ec488b682b55912a2a4bff1967275fb9e57f77d","original_commit_id":"7ec488b682b55912a2a4bff1967275fb9e57f77d","user":{"login":"stuarthodgson","id":3698891,"avatar_url":"https://avatars.githubusercontent.com/u/3698891?v=3","gravatar_id":"","url":"https://api.github.com/users/stuarthodgson","html_url":"https://github.com/stuarthodgson","followers_url":"https://api.github.com/users/stuarthodgson/followers","following_url":"https://api.github.com/users/stuarthodgson/following{/other_user}","gists_url":"https://api.github.com/users/stuarthodgson/gists{/gist_id}","starred_url":"https://api.github.com/users/stuarthodgson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuarthodgson/subscriptions","organizations_url":"https://api.github.com/users/stuarthodgson/orgs","repos_url":"https://api.github.com/users/stuarthodgson/repos","events_url":"https://api.github.com/users/stuarthodgson/events{/privacy}","received_events_url":"https://api.github.com/users/stuarthodgson/received_events","type":"User","site_admin":false},"body":"Yeah that is neater, brain tired. Will update","created_at":"2015-07-24T14:40:13Z","updated_at":"2015-07-24T14:40:13Z","html_url":"https://github.com/potentialventures/cocotb/pull/271#discussion_r35428326","pull_request_url":"https://api.github.com/repos/potentialventures/cocotb/pulls/271","_links":{"self":{"href":"https://api.github.com/repos/potentialventures/cocotb/pulls/comments/35428326"},"html":{"href":"https://github.com/potentialventures/cocotb/pull/271#discussion_r35428326"},"pull_request":{"href":"https://api.github.com/repos/potentialventures/cocotb/pulls/271"}}},"pull_request":{"url":"https://api.github.com/repos/potentialventures/cocotb/pulls/271","id":40780723,"html_url":"https://github.com/potentialventures/cocotb/pull/271","diff_url":"https://github.com/potentialventures/cocotb/pull/271.diff","patch_url":"https://github.com/potentialventures/cocotb/pull/271.patch","issue_url":"https://api.github.com/repos/potentialventures/cocotb/issues/271","number":271,"state":"open","locked":false,"title":"Issue#257","user":{"login":"stuarthodgson","id":3698891,"avatar_url":"https://avatars.githubusercontent.com/u/3698891?v=3","gravatar_id":"","url":"https://api.github.com/users/stuarthodgson","html_url":"https://github.com/stuarthodgson","followers_url":"https://api.github.com/users/stuarthodgson/followers","following_url":"https://api.github.com/users/stuarthodgson/following{/other_user}","gists_url":"https://api.github.com/users/stuarthodgson/gists{/gist_id}","starred_url":"https://api.github.com/users/stuarthodgson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuarthodgson/subscriptions","organizations_url":"https://api.github.com/users/stuarthodgson/orgs","repos_url":"https://api.github.com/users/stuarthodgson/repos","events_url":"https://api.github.com/users/stuarthodgson/events{/privacy}","received_events_url":"https://api.github.com/users/stuarthodgson/received_events","type":"User","site_admin":false},"body":"Allow global logging level.","created_at":"2015-07-24T14:33:04Z","updated_at":"2015-07-24T14:40:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e430ae0c3218ff1ff4903232e3a52fd18f047827","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/potentialventures/cocotb/pulls/271/commits","review_comments_url":"https://api.github.com/repos/potentialventures/cocotb/pulls/271/comments","review_comment_url":"https://api.github.com/repos/potentialventures/cocotb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/potentialventures/cocotb/issues/271/comments","statuses_url":"https://api.github.com/repos/potentialventures/cocotb/statuses/7ec488b682b55912a2a4bff1967275fb9e57f77d","head":{"label":"potentialventures:Issue#257","ref":"Issue#257","sha":"7ec488b682b55912a2a4bff1967275fb9e57f77d","user":{"login":"potentialventures","id":3698838,"avatar_url":"https://avatars.githubusercontent.com/u/3698838?v=3","gravatar_id":"","url":"https://api.github.com/users/potentialventures","html_url":"https://github.com/potentialventures","followers_url":"https://api.github.com/users/potentialventures/followers","following_url":"https://api.github.com/users/potentialventures/following{/other_user}","gists_url":"https://api.github.com/users/potentialventures/gists{/gist_id}","starred_url":"https://api.github.com/users/potentialventures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potentialventures/subscriptions","organizations_url":"https://api.github.com/users/potentialventures/orgs","repos_url":"https://api.github.com/users/potentialventures/repos","events_url":"https://api.github.com/users/potentialventures/events{/privacy}","received_events_url":"https://api.github.com/users/potentialventures/received_events","type":"User","site_admin":false},"repo":{"id":10651005,"name":"cocotb","full_name":"potentialventures/cocotb","owner":{"login":"potentialventures","id":3698838,"avatar_url":"https://avatars.githubusercontent.com/u/3698838?v=3","gravatar_id":"","url":"https://api.github.com/users/potentialventures","html_url":"https://github.com/potentialventures","followers_url":"https://api.github.com/users/potentialventures/followers","following_url":"https://api.github.com/users/potentialventures/following{/other_user}","gists_url":"https://api.github.com/users/potentialventures/gists{/gist_id}","starred_url":"https://api.github.com/users/potentialventures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potentialventures/subscriptions","organizations_url":"https://api.github.com/users/potentialventures/orgs","repos_url":"https://api.github.com/users/potentialventures/repos","events_url":"https://api.github.com/users/potentialventures/events{/privacy}","received_events_url":"https://api.github.com/users/potentialventures/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/potentialventures/cocotb","description":"Coroutine Co-simulation Test Bench ","fork":false,"url":"https://api.github.com/repos/potentialventures/cocotb","forks_url":"https://api.github.com/repos/potentialventures/cocotb/forks","keys_url":"https://api.github.com/repos/potentialventures/cocotb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/potentialventures/cocotb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/potentialventures/cocotb/teams","hooks_url":"https://api.github.com/repos/potentialventures/cocotb/hooks","issue_events_url":"https://api.github.com/repos/potentialventures/cocotb/issues/events{/number}","events_url":"https://api.github.com/repos/potentialventures/cocotb/events","assignees_url":"https://api.github.com/repos/potentialventures/cocotb/assignees{/user}","branches_url":"https://api.github.com/repos/potentialventures/cocotb/branches{/branch}","tags_url":"https://api.github.com/repos/potentialventures/cocotb/tags","blobs_url":"https://api.github.com/repos/potentialventures/cocotb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/potentialventures/cocotb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/potentialventures/cocotb/git/refs{/sha}","trees_url":"https://api.github.com/repos/potentialventures/cocotb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/potentialventures/cocotb/statuses/{sha}","languages_url":"https://api.github.com/repos/potentialventures/cocotb/languages","stargazers_url":"https://api.github.com/repos/potentialventures/cocotb/stargazers","contributors_url":"https://api.github.com/repos/potentialventures/cocotb/contributors","subscribers_url":"https://api.github.com/repos/potentialventures/cocotb/subscribers","subscription_url":"https://api.github.com/repos/potentialventures/cocotb/subscription","commits_url":"https://api.github.com/repos/potentialventures/cocotb/commits{/sha}","git_commits_url":"https://api.github.com/repos/potentialventures/cocotb/git/commits{/sha}","comments_url":"https://api.github.com/repos/potentialventures/cocotb/comments{/number}","issue_comment_url":"https://api.github.com/repos/potentialventures/cocotb/issues/comments{/number}","contents_url":"https://api.github.com/repos/potentialventures/cocotb/contents/{+path}","compare_url":"https://api.github.com/repos/potentialventures/cocotb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/potentialventures/cocotb/merges","archive_url":"https://api.github.com/repos/potentialventures/cocotb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/potentialventures/cocotb/downloads","issues_url":"https://api.github.com/repos/potentialventures/cocotb/issues{/number}","pulls_url":"https://api.github.com/repos/potentialventures/cocotb/pulls{/number}","milestones_url":"https://api.github.com/repos/potentialventures/cocotb/milestones{/number}","notifications_url":"https://api.github.com/repos/potentialventures/cocotb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/potentialventures/cocotb/labels{/name}","releases_url":"https://api.github.com/repos/potentialventures/cocotb/releases{/id}","created_at":"2013-06-12T20:07:15Z","updated_at":"2015-07-21T09:16:30Z","pushed_at":"2015-07-24T14:33:05Z","git_url":"git://github.com/potentialventures/cocotb.git","ssh_url":"git@github.com:potentialventures/cocotb.git","clone_url":"https://github.com/potentialventures/cocotb.git","svn_url":"https://github.com/potentialventures/cocotb","homepage":null,"size":5131,"stargazers_count":71,"watchers_count":71,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":30,"mirror_url":null,"open_issues_count":70,"forks":30,"open_issues":70,"watchers":71,"default_branch":"master"}},"base":{"label":"potentialventures:master","ref":"master","sha":"cc0e437f844aff3e0028ef4cd7bcebdbb3683dda","user":{"login":"potentialventures","id":3698838,"avatar_url":"https://avatars.githubusercontent.com/u/3698838?v=3","gravatar_id":"","url":"https://api.github.com/users/potentialventures","html_url":"https://github.com/potentialventures","followers_url":"https://api.github.com/users/potentialventures/followers","following_url":"https://api.github.com/users/potentialventures/following{/other_user}","gists_url":"https://api.github.com/users/potentialventures/gists{/gist_id}","starred_url":"https://api.github.com/users/potentialventures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potentialventures/subscriptions","organizations_url":"https://api.github.com/users/potentialventures/orgs","repos_url":"https://api.github.com/users/potentialventures/repos","events_url":"https://api.github.com/users/potentialventures/events{/privacy}","received_events_url":"https://api.github.com/users/potentialventures/received_events","type":"User","site_admin":false},"repo":{"id":10651005,"name":"cocotb","full_name":"potentialventures/cocotb","owner":{"login":"potentialventures","id":3698838,"avatar_url":"https://avatars.githubusercontent.com/u/3698838?v=3","gravatar_id":"","url":"https://api.github.com/users/potentialventures","html_url":"https://github.com/potentialventures","followers_url":"https://api.github.com/users/potentialventures/followers","following_url":"https://api.github.com/users/potentialventures/following{/other_user}","gists_url":"https://api.github.com/users/potentialventures/gists{/gist_id}","starred_url":"https://api.github.com/users/potentialventures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potentialventures/subscriptions","organizations_url":"https://api.github.com/users/potentialventures/orgs","repos_url":"https://api.github.com/users/potentialventures/repos","events_url":"https://api.github.com/users/potentialventures/events{/privacy}","received_events_url":"https://api.github.com/users/potentialventures/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/potentialventures/cocotb","description":"Coroutine Co-simulation Test Bench ","fork":false,"url":"https://api.github.com/repos/potentialventures/cocotb","forks_url":"https://api.github.com/repos/potentialventures/cocotb/forks","keys_url":"https://api.github.com/repos/potentialventures/cocotb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/potentialventures/cocotb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/potentialventures/cocotb/teams","hooks_url":"https://api.github.com/repos/potentialventures/cocotb/hooks","issue_events_url":"https://api.github.com/repos/potentialventures/cocotb/issues/events{/number}","events_url":"https://api.github.com/repos/potentialventures/cocotb/events","assignees_url":"https://api.github.com/repos/potentialventures/cocotb/assignees{/user}","branches_url":"https://api.github.com/repos/potentialventures/cocotb/branches{/branch}","tags_url":"https://api.github.com/repos/potentialventures/cocotb/tags","blobs_url":"https://api.github.com/repos/potentialventures/cocotb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/potentialventures/cocotb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/potentialventures/cocotb/git/refs{/sha}","trees_url":"https://api.github.com/repos/potentialventures/cocotb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/potentialventures/cocotb/statuses/{sha}","languages_url":"https://api.github.com/repos/potentialventures/cocotb/languages","stargazers_url":"https://api.github.com/repos/potentialventures/cocotb/stargazers","contributors_url":"https://api.github.com/repos/potentialventures/cocotb/contributors","subscribers_url":"https://api.github.com/repos/potentialventures/cocotb/subscribers","subscription_url":"https://api.github.com/repos/potentialventures/cocotb/subscription","commits_url":"https://api.github.com/repos/potentialventures/cocotb/commits{/sha}","git_commits_url":"https://api.github.com/repos/potentialventures/cocotb/git/commits{/sha}","comments_url":"https://api.github.com/repos/potentialventures/cocotb/comments{/number}","issue_comment_url":"https://api.github.com/repos/potentialventures/cocotb/issues/comments{/number}","contents_url":"https://api.github.com/repos/potentialventures/cocotb/contents/{+path}","compare_url":"https://api.github.com/repos/potentialventures/cocotb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/potentialventures/cocotb/merges","archive_url":"https://api.github.com/repos/potentialventures/cocotb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/potentialventures/cocotb/downloads","issues_url":"https://api.github.com/repos/potentialventures/cocotb/issues{/number}","pulls_url":"https://api.github.com/repos/potentialventures/cocotb/pulls{/number}","milestones_url":"https://api.github.com/repos/potentialventures/cocotb/milestones{/number}","notifications_url":"https://api.github.com/repos/potentialventures/cocotb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/potentialventures/cocotb/labels{/name}","releases_url":"https://api.github.com/repos/potentialventures/cocotb/releases{/id}","created_at":"2013-06-12T20:07:15Z","updated_at":"2015-07-21T09:16:30Z","pushed_at":"2015-07-24T14:33:05Z","git_url":"git://github.com/potentialventures/cocotb.git","ssh_url":"git@github.com:potentialventures/cocotb.git","clone_url":"https://github.com/potentialventures/cocotb.git","svn_url":"https://github.com/potentialventures/cocotb","homepage":null,"size":5131,"stargazers_count":71,"watchers_count":71,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":30,"mirror_url":null,"open_issues_count":70,"forks":30,"open_issues":70,"watchers":71,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/potentialventures/cocotb/pulls/271"},"html":{"href":"https://github.com/potentialventures/cocotb/pull/271"},"issue":{"href":"https://api.github.com/repos/potentialventures/cocotb/issues/271"},"comments":{"href":"https://api.github.com/repos/potentialventures/cocotb/issues/271/comments"},"review_comments":{"href":"https://api.github.com/repos/potentialventures/cocotb/pulls/271/comments"},"review_comment":{"href":"https://api.github.com/repos/potentialventures/cocotb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/potentialventures/cocotb/pulls/271/commits"},"statuses":{"href":"https://api.github.com/repos/potentialventures/cocotb/statuses/7ec488b682b55912a2a4bff1967275fb9e57f77d"}}}}