{"action":"created","comment":{"url":"https://api.github.com/repos/hpcugent/vsc-base/pulls/comments/24816189","id":24816189,"diff_hunk":"@@ -188,12 +192,20 @@ def makeRecord(self, name, level, pathname, lineno, msg, args, excinfo, func=Non\n             new_msg = msg.encode('utf8', 'replace')\n         return logrecordcls(name, level, pathname, lineno, new_msg, args, excinfo)\n \n+    def fail(self, message, *args):\n+        \"\"\"Log error message and raise exception.\"\"\"\n+        formatted_message = message % args\n+        self.DEFAULT_RAISE_EXCEPTION_LOG_METHOD(formatted_message)","path":"lib/vsc/utils/fancylogger.py","position":18,"original_position":18,"commit_id":"bde99a21a7c5530a93ab78630f67af1f10279850","original_commit_id":"bde99a21a7c5530a93ab78630f67af1f10279850","user":{"login":"stdweird","id":1517606,"avatar_url":"https://avatars.githubusercontent.com/u/1517606?v=3","gravatar_id":"","url":"https://api.github.com/users/stdweird","html_url":"https://github.com/stdweird","followers_url":"https://api.github.com/users/stdweird/followers","following_url":"https://api.github.com/users/stdweird/following{/other_user}","gists_url":"https://api.github.com/users/stdweird/gists{/gist_id}","starred_url":"https://api.github.com/users/stdweird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stdweird/subscriptions","organizations_url":"https://api.github.com/users/stdweird/orgs","repos_url":"https://api.github.com/users/stdweird/repos","events_url":"https://api.github.com/users/stdweird/events{/privacy}","received_events_url":"https://api.github.com/users/stdweird/received_events","type":"User","site_admin":false},"body":"well, not if you really have to use a lambda...","created_at":"2015-02-17T13:49:23Z","updated_at":"2015-02-17T13:49:23Z","html_url":"https://github.com/hpcugent/vsc-base/pull/156#discussion_r24816189","pull_request_url":"https://api.github.com/repos/hpcugent/vsc-base/pulls/156","_links":{"self":{"href":"https://api.github.com/repos/hpcugent/vsc-base/pulls/comments/24816189"},"html":{"href":"https://github.com/hpcugent/vsc-base/pull/156#discussion_r24816189"},"pull_request":{"href":"https://api.github.com/repos/hpcugent/vsc-base/pulls/156"}}},"pull_request":{"url":"https://api.github.com/repos/hpcugent/vsc-base/pulls/156","id":29436929,"html_url":"https://github.com/hpcugent/vsc-base/pull/156","diff_url":"https://github.com/hpcugent/vsc-base/pull/156.diff","patch_url":"https://github.com/hpcugent/vsc-base/pull/156.patch","issue_url":"https://api.github.com/repos/hpcugent/vsc-base/issues/156","number":156,"state":"open","locked":false,"title":"add fail log method, make hardcoded stuff in raiseException easy to redefine for deriving classes","user":{"login":"boegel","id":620876,"avatar_url":"https://avatars.githubusercontent.com/u/620876?v=3","gravatar_id":"","url":"https://api.github.com/users/boegel","html_url":"https://github.com/boegel","followers_url":"https://api.github.com/users/boegel/followers","following_url":"https://api.github.com/users/boegel/following{/other_user}","gists_url":"https://api.github.com/users/boegel/gists{/gist_id}","starred_url":"https://api.github.com/users/boegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boegel/subscriptions","organizations_url":"https://api.github.com/users/boegel/orgs","repos_url":"https://api.github.com/users/boegel/repos","events_url":"https://api.github.com/users/boegel/events{/privacy}","received_events_url":"https://api.github.com/users/boegel/received_events","type":"User","site_admin":false},"body":"@stdweird, @JensTimmerman: please review","created_at":"2015-02-17T12:06:20Z","updated_at":"2015-02-17T13:49:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d76c0ab3e8d411d54b5a66f8521359622eb0a25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hpcugent/vsc-base/pulls/156/commits","review_comments_url":"https://api.github.com/repos/hpcugent/vsc-base/pulls/156/comments","review_comment_url":"https://api.github.com/repos/hpcugent/vsc-base/pulls/comments/{number}","comments_url":"https://api.github.com/repos/hpcugent/vsc-base/issues/156/comments","statuses_url":"https://api.github.com/repos/hpcugent/vsc-base/statuses/bde99a21a7c5530a93ab78630f67af1f10279850","head":{"label":"boegel:fail_and_enhance_raiseException","ref":"fail_and_enhance_raiseException","sha":"bde99a21a7c5530a93ab78630f67af1f10279850","user":{"login":"boegel","id":620876,"avatar_url":"https://avatars.githubusercontent.com/u/620876?v=3","gravatar_id":"","url":"https://api.github.com/users/boegel","html_url":"https://github.com/boegel","followers_url":"https://api.github.com/users/boegel/followers","following_url":"https://api.github.com/users/boegel/following{/other_user}","gists_url":"https://api.github.com/users/boegel/gists{/gist_id}","starred_url":"https://api.github.com/users/boegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boegel/subscriptions","organizations_url":"https://api.github.com/users/boegel/orgs","repos_url":"https://api.github.com/users/boegel/repos","events_url":"https://api.github.com/users/boegel/events{/privacy}","received_events_url":"https://api.github.com/users/boegel/received_events","type":"User","site_admin":false},"repo":{"id":8048836,"name":"vsc-base","full_name":"boegel/vsc-base","owner":{"login":"boegel","id":620876,"avatar_url":"https://avatars.githubusercontent.com/u/620876?v=3","gravatar_id":"","url":"https://api.github.com/users/boegel","html_url":"https://github.com/boegel","followers_url":"https://api.github.com/users/boegel/followers","following_url":"https://api.github.com/users/boegel/following{/other_user}","gists_url":"https://api.github.com/users/boegel/gists{/gist_id}","starred_url":"https://api.github.com/users/boegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boegel/subscriptions","organizations_url":"https://api.github.com/users/boegel/orgs","repos_url":"https://api.github.com/users/boegel/repos","events_url":"https://api.github.com/users/boegel/events{/privacy}","received_events_url":"https://api.github.com/users/boegel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boegel/vsc-base","description":"Basic Python libraries used by UGent's HPC group","fork":true,"url":"https://api.github.com/repos/boegel/vsc-base","forks_url":"https://api.github.com/repos/boegel/vsc-base/forks","keys_url":"https://api.github.com/repos/boegel/vsc-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boegel/vsc-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boegel/vsc-base/teams","hooks_url":"https://api.github.com/repos/boegel/vsc-base/hooks","issue_events_url":"https://api.github.com/repos/boegel/vsc-base/issues/events{/number}","events_url":"https://api.github.com/repos/boegel/vsc-base/events","assignees_url":"https://api.github.com/repos/boegel/vsc-base/assignees{/user}","branches_url":"https://api.github.com/repos/boegel/vsc-base/branches{/branch}","tags_url":"https://api.github.com/repos/boegel/vsc-base/tags","blobs_url":"https://api.github.com/repos/boegel/vsc-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boegel/vsc-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boegel/vsc-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/boegel/vsc-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boegel/vsc-base/statuses/{sha}","languages_url":"https://api.github.com/repos/boegel/vsc-base/languages","stargazers_url":"https://api.github.com/repos/boegel/vsc-base/stargazers","contributors_url":"https://api.github.com/repos/boegel/vsc-base/contributors","subscribers_url":"https://api.github.com/repos/boegel/vsc-base/subscribers","subscription_url":"https://api.github.com/repos/boegel/vsc-base/subscription","commits_url":"https://api.github.com/repos/boegel/vsc-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/boegel/vsc-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/boegel/vsc-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/boegel/vsc-base/issues/comments/{number}","contents_url":"https://api.github.com/repos/boegel/vsc-base/contents/{+path}","compare_url":"https://api.github.com/repos/boegel/vsc-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boegel/vsc-base/merges","archive_url":"https://api.github.com/repos/boegel/vsc-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boegel/vsc-base/downloads","issues_url":"https://api.github.com/repos/boegel/vsc-base/issues{/number}","pulls_url":"https://api.github.com/repos/boegel/vsc-base/pulls{/number}","milestones_url":"https://api.github.com/repos/boegel/vsc-base/milestones{/number}","notifications_url":"https://api.github.com/repos/boegel/vsc-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boegel/vsc-base/labels{/name}","releases_url":"https://api.github.com/repos/boegel/vsc-base/releases{/id}","created_at":"2013-02-06T10:07:56Z","updated_at":"2014-09-09T11:18:32Z","pushed_at":"2015-02-17T12:05:49Z","git_url":"git://github.com/boegel/vsc-base.git","ssh_url":"git@github.com:boegel/vsc-base.git","clone_url":"https://github.com/boegel/vsc-base.git","svn_url":"https://github.com/boegel/vsc-base","homepage":null,"size":1355,"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":"hpcugent:master","ref":"master","sha":"eb47bee435e5e24666b398d8dd41f82a40214b7a","user":{"login":"hpcugent","id":1515263,"avatar_url":"https://avatars.githubusercontent.com/u/1515263?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcugent","html_url":"https://github.com/hpcugent","followers_url":"https://api.github.com/users/hpcugent/followers","following_url":"https://api.github.com/users/hpcugent/following{/other_user}","gists_url":"https://api.github.com/users/hpcugent/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcugent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcugent/subscriptions","organizations_url":"https://api.github.com/users/hpcugent/orgs","repos_url":"https://api.github.com/users/hpcugent/repos","events_url":"https://api.github.com/users/hpcugent/events{/privacy}","received_events_url":"https://api.github.com/users/hpcugent/received_events","type":"Organization","site_admin":false},"repo":{"id":7765704,"name":"vsc-base","full_name":"hpcugent/vsc-base","owner":{"login":"hpcugent","id":1515263,"avatar_url":"https://avatars.githubusercontent.com/u/1515263?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcugent","html_url":"https://github.com/hpcugent","followers_url":"https://api.github.com/users/hpcugent/followers","following_url":"https://api.github.com/users/hpcugent/following{/other_user}","gists_url":"https://api.github.com/users/hpcugent/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcugent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcugent/subscriptions","organizations_url":"https://api.github.com/users/hpcugent/orgs","repos_url":"https://api.github.com/users/hpcugent/repos","events_url":"https://api.github.com/users/hpcugent/events{/privacy}","received_events_url":"https://api.github.com/users/hpcugent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hpcugent/vsc-base","description":"Basic Python libraries used by UGent's HPC group","fork":false,"url":"https://api.github.com/repos/hpcugent/vsc-base","forks_url":"https://api.github.com/repos/hpcugent/vsc-base/forks","keys_url":"https://api.github.com/repos/hpcugent/vsc-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpcugent/vsc-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpcugent/vsc-base/teams","hooks_url":"https://api.github.com/repos/hpcugent/vsc-base/hooks","issue_events_url":"https://api.github.com/repos/hpcugent/vsc-base/issues/events{/number}","events_url":"https://api.github.com/repos/hpcugent/vsc-base/events","assignees_url":"https://api.github.com/repos/hpcugent/vsc-base/assignees{/user}","branches_url":"https://api.github.com/repos/hpcugent/vsc-base/branches{/branch}","tags_url":"https://api.github.com/repos/hpcugent/vsc-base/tags","blobs_url":"https://api.github.com/repos/hpcugent/vsc-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpcugent/vsc-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpcugent/vsc-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpcugent/vsc-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpcugent/vsc-base/statuses/{sha}","languages_url":"https://api.github.com/repos/hpcugent/vsc-base/languages","stargazers_url":"https://api.github.com/repos/hpcugent/vsc-base/stargazers","contributors_url":"https://api.github.com/repos/hpcugent/vsc-base/contributors","subscribers_url":"https://api.github.com/repos/hpcugent/vsc-base/subscribers","subscription_url":"https://api.github.com/repos/hpcugent/vsc-base/subscription","commits_url":"https://api.github.com/repos/hpcugent/vsc-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpcugent/vsc-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpcugent/vsc-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpcugent/vsc-base/issues/comments/{number}","contents_url":"https://api.github.com/repos/hpcugent/vsc-base/contents/{+path}","compare_url":"https://api.github.com/repos/hpcugent/vsc-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpcugent/vsc-base/merges","archive_url":"https://api.github.com/repos/hpcugent/vsc-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpcugent/vsc-base/downloads","issues_url":"https://api.github.com/repos/hpcugent/vsc-base/issues{/number}","pulls_url":"https://api.github.com/repos/hpcugent/vsc-base/pulls{/number}","milestones_url":"https://api.github.com/repos/hpcugent/vsc-base/milestones{/number}","notifications_url":"https://api.github.com/repos/hpcugent/vsc-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpcugent/vsc-base/labels{/name}","releases_url":"https://api.github.com/repos/hpcugent/vsc-base/releases{/id}","created_at":"2013-01-23T01:51:31Z","updated_at":"2014-12-18T10:12:51Z","pushed_at":"2014-12-18T10:12:50Z","git_url":"git://github.com/hpcugent/vsc-base.git","ssh_url":"git@github.com:hpcugent/vsc-base.git","clone_url":"https://github.com/hpcugent/vsc-base.git","svn_url":"https://github.com/hpcugent/vsc-base","homepage":null,"size":1642,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":16,"forks":13,"open_issues":16,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcugent/vsc-base/pulls/156"},"html":{"href":"https://github.com/hpcugent/vsc-base/pull/156"},"issue":{"href":"https://api.github.com/repos/hpcugent/vsc-base/issues/156"},"comments":{"href":"https://api.github.com/repos/hpcugent/vsc-base/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcugent/vsc-base/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/hpcugent/vsc-base/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/hpcugent/vsc-base/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/hpcugent/vsc-base/statuses/bde99a21a7c5530a93ab78630f67af1f10279850"}}}}