{"action":"opened","number":2185,"pull_request":{"url":"https://api.github.com/repos/rsyslog/rsyslog/pulls/2185","id":157391040,"html_url":"https://github.com/rsyslog/rsyslog/pull/2185","diff_url":"https://github.com/rsyslog/rsyslog/pull/2185.diff","patch_url":"https://github.com/rsyslog/rsyslog/pull/2185.patch","issue_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/2185","number":2185,"state":"open","locked":false,"title":"RainerScript: add function script_error() and error-reporting support","user":{"login":"rgerhards","id":1482123,"avatar_url":"https://avatars3.githubusercontent.com/u/1482123?v=4","gravatar_id":"","url":"https://api.github.com/users/rgerhards","html_url":"https://github.com/rgerhards","followers_url":"https://api.github.com/users/rgerhards/followers","following_url":"https://api.github.com/users/rgerhards/following{/other_user}","gists_url":"https://api.github.com/users/rgerhards/gists{/gist_id}","starred_url":"https://api.github.com/users/rgerhards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgerhards/subscriptions","organizations_url":"https://api.github.com/users/rgerhards/orgs","repos_url":"https://api.github.com/users/rgerhards/repos","events_url":"https://api.github.com/users/rgerhards/events{/privacy}","received_events_url":"https://api.github.com/users/rgerhards/received_events","type":"User","site_admin":false},"body":"This permits script functions that could fail to report errors back, so\r\nthat the user can handle them if desired. We use an errno-style of\r\ninterface. That means script_error() needs to be called after functions\r\nthat supports it. It will return either 0 (all OK) or something else\r\n(an error condition).\r\n\r\n@mrworkman The commit also modifies the parse_time() function to use the new\r\ninterface. First of all, this is useful for users, and secondly we\r\nneeded a capability to craft a testbench test.\r\n\r\ncloses https://github.com/rsyslog/rsyslog/issues/1978\r\n","created_at":"2017-12-09T15:12:09Z","updated_at":"2017-12-09T15:12:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rsyslog/rsyslog/pulls/2185/commits","review_comments_url":"https://api.github.com/repos/rsyslog/rsyslog/pulls/2185/comments","review_comment_url":"https://api.github.com/repos/rsyslog/rsyslog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/2185/comments","statuses_url":"https://api.github.com/repos/rsyslog/rsyslog/statuses/b63d3051bcfe87a24cb21bee25c598632455ff6d","head":{"label":"rgerhards:i-1978","ref":"i-1978","sha":"b63d3051bcfe87a24cb21bee25c598632455ff6d","user":{"login":"rgerhards","id":1482123,"avatar_url":"https://avatars3.githubusercontent.com/u/1482123?v=4","gravatar_id":"","url":"https://api.github.com/users/rgerhards","html_url":"https://github.com/rgerhards","followers_url":"https://api.github.com/users/rgerhards/followers","following_url":"https://api.github.com/users/rgerhards/following{/other_user}","gists_url":"https://api.github.com/users/rgerhards/gists{/gist_id}","starred_url":"https://api.github.com/users/rgerhards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgerhards/subscriptions","organizations_url":"https://api.github.com/users/rgerhards/orgs","repos_url":"https://api.github.com/users/rgerhards/repos","events_url":"https://api.github.com/users/rgerhards/events{/privacy}","received_events_url":"https://api.github.com/users/rgerhards/received_events","type":"User","site_admin":false},"repo":{"id":16758618,"name":"rsyslog","full_name":"rgerhards/rsyslog","owner":{"login":"rgerhards","id":1482123,"avatar_url":"https://avatars3.githubusercontent.com/u/1482123?v=4","gravatar_id":"","url":"https://api.github.com/users/rgerhards","html_url":"https://github.com/rgerhards","followers_url":"https://api.github.com/users/rgerhards/followers","following_url":"https://api.github.com/users/rgerhards/following{/other_user}","gists_url":"https://api.github.com/users/rgerhards/gists{/gist_id}","starred_url":"https://api.github.com/users/rgerhards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgerhards/subscriptions","organizations_url":"https://api.github.com/users/rgerhards/orgs","repos_url":"https://api.github.com/users/rgerhards/repos","events_url":"https://api.github.com/users/rgerhards/events{/privacy}","received_events_url":"https://api.github.com/users/rgerhards/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rgerhards/rsyslog","description":"a Rocket-fast SYStem for LOG processing","fork":true,"url":"https://api.github.com/repos/rgerhards/rsyslog","forks_url":"https://api.github.com/repos/rgerhards/rsyslog/forks","keys_url":"https://api.github.com/repos/rgerhards/rsyslog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rgerhards/rsyslog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rgerhards/rsyslog/teams","hooks_url":"https://api.github.com/repos/rgerhards/rsyslog/hooks","issue_events_url":"https://api.github.com/repos/rgerhards/rsyslog/issues/events{/number}","events_url":"https://api.github.com/repos/rgerhards/rsyslog/events","assignees_url":"https://api.github.com/repos/rgerhards/rsyslog/assignees{/user}","branches_url":"https://api.github.com/repos/rgerhards/rsyslog/branches{/branch}","tags_url":"https://api.github.com/repos/rgerhards/rsyslog/tags","blobs_url":"https://api.github.com/repos/rgerhards/rsyslog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rgerhards/rsyslog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rgerhards/rsyslog/git/refs{/sha}","trees_url":"https://api.github.com/repos/rgerhards/rsyslog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rgerhards/rsyslog/statuses/{sha}","languages_url":"https://api.github.com/repos/rgerhards/rsyslog/languages","stargazers_url":"https://api.github.com/repos/rgerhards/rsyslog/stargazers","contributors_url":"https://api.github.com/repos/rgerhards/rsyslog/contributors","subscribers_url":"https://api.github.com/repos/rgerhards/rsyslog/subscribers","subscription_url":"https://api.github.com/repos/rgerhards/rsyslog/subscription","commits_url":"https://api.github.com/repos/rgerhards/rsyslog/commits{/sha}","git_commits_url":"https://api.github.com/repos/rgerhards/rsyslog/git/commits{/sha}","comments_url":"https://api.github.com/repos/rgerhards/rsyslog/comments{/number}","issue_comment_url":"https://api.github.com/repos/rgerhards/rsyslog/issues/comments{/number}","contents_url":"https://api.github.com/repos/rgerhards/rsyslog/contents/{+path}","compare_url":"https://api.github.com/repos/rgerhards/rsyslog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rgerhards/rsyslog/merges","archive_url":"https://api.github.com/repos/rgerhards/rsyslog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rgerhards/rsyslog/downloads","issues_url":"https://api.github.com/repos/rgerhards/rsyslog/issues{/number}","pulls_url":"https://api.github.com/repos/rgerhards/rsyslog/pulls{/number}","milestones_url":"https://api.github.com/repos/rgerhards/rsyslog/milestones{/number}","notifications_url":"https://api.github.com/repos/rgerhards/rsyslog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rgerhards/rsyslog/labels{/name}","releases_url":"https://api.github.com/repos/rgerhards/rsyslog/releases{/id}","deployments_url":"https://api.github.com/repos/rgerhards/rsyslog/deployments","created_at":"2014-02-12T06:47:58Z","updated_at":"2017-03-02T13:25:40Z","pushed_at":"2017-12-09T15:11:42Z","git_url":"git://github.com/rgerhards/rsyslog.git","ssh_url":"git@github.com:rgerhards/rsyslog.git","clone_url":"https://github.com/rgerhards/rsyslog.git","svn_url":"https://github.com/rgerhards/rsyslog","homepage":"http://www.rsyslog.com","size":46301,"stargazers_count":3,"watchers_count":3,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"rsyslog:master","ref":"master","sha":"6f4b651df1e30430aa4480e6b6b1a2d49ad6df2c","user":{"login":"rsyslog","id":6178456,"avatar_url":"https://avatars2.githubusercontent.com/u/6178456?v=4","gravatar_id":"","url":"https://api.github.com/users/rsyslog","html_url":"https://github.com/rsyslog","followers_url":"https://api.github.com/users/rsyslog/followers","following_url":"https://api.github.com/users/rsyslog/following{/other_user}","gists_url":"https://api.github.com/users/rsyslog/gists{/gist_id}","starred_url":"https://api.github.com/users/rsyslog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsyslog/subscriptions","organizations_url":"https://api.github.com/users/rsyslog/orgs","repos_url":"https://api.github.com/users/rsyslog/repos","events_url":"https://api.github.com/users/rsyslog/events{/privacy}","received_events_url":"https://api.github.com/users/rsyslog/received_events","type":"Organization","site_admin":false},"repo":{"id":10458362,"name":"rsyslog","full_name":"rsyslog/rsyslog","owner":{"login":"rsyslog","id":6178456,"avatar_url":"https://avatars2.githubusercontent.com/u/6178456?v=4","gravatar_id":"","url":"https://api.github.com/users/rsyslog","html_url":"https://github.com/rsyslog","followers_url":"https://api.github.com/users/rsyslog/followers","following_url":"https://api.github.com/users/rsyslog/following{/other_user}","gists_url":"https://api.github.com/users/rsyslog/gists{/gist_id}","starred_url":"https://api.github.com/users/rsyslog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsyslog/subscriptions","organizations_url":"https://api.github.com/users/rsyslog/orgs","repos_url":"https://api.github.com/users/rsyslog/repos","events_url":"https://api.github.com/users/rsyslog/events{/privacy}","received_events_url":"https://api.github.com/users/rsyslog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rsyslog/rsyslog","description":"a Rocket-fast SYStem for LOG processing","fork":false,"url":"https://api.github.com/repos/rsyslog/rsyslog","forks_url":"https://api.github.com/repos/rsyslog/rsyslog/forks","keys_url":"https://api.github.com/repos/rsyslog/rsyslog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsyslog/rsyslog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsyslog/rsyslog/teams","hooks_url":"https://api.github.com/repos/rsyslog/rsyslog/hooks","issue_events_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/events{/number}","events_url":"https://api.github.com/repos/rsyslog/rsyslog/events","assignees_url":"https://api.github.com/repos/rsyslog/rsyslog/assignees{/user}","branches_url":"https://api.github.com/repos/rsyslog/rsyslog/branches{/branch}","tags_url":"https://api.github.com/repos/rsyslog/rsyslog/tags","blobs_url":"https://api.github.com/repos/rsyslog/rsyslog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsyslog/rsyslog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsyslog/rsyslog/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsyslog/rsyslog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsyslog/rsyslog/statuses/{sha}","languages_url":"https://api.github.com/repos/rsyslog/rsyslog/languages","stargazers_url":"https://api.github.com/repos/rsyslog/rsyslog/stargazers","contributors_url":"https://api.github.com/repos/rsyslog/rsyslog/contributors","subscribers_url":"https://api.github.com/repos/rsyslog/rsyslog/subscribers","subscription_url":"https://api.github.com/repos/rsyslog/rsyslog/subscription","commits_url":"https://api.github.com/repos/rsyslog/rsyslog/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsyslog/rsyslog/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsyslog/rsyslog/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsyslog/rsyslog/contents/{+path}","compare_url":"https://api.github.com/repos/rsyslog/rsyslog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsyslog/rsyslog/merges","archive_url":"https://api.github.com/repos/rsyslog/rsyslog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsyslog/rsyslog/downloads","issues_url":"https://api.github.com/repos/rsyslog/rsyslog/issues{/number}","pulls_url":"https://api.github.com/repos/rsyslog/rsyslog/pulls{/number}","milestones_url":"https://api.github.com/repos/rsyslog/rsyslog/milestones{/number}","notifications_url":"https://api.github.com/repos/rsyslog/rsyslog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsyslog/rsyslog/labels{/name}","releases_url":"https://api.github.com/repos/rsyslog/rsyslog/releases{/id}","deployments_url":"https://api.github.com/repos/rsyslog/rsyslog/deployments","created_at":"2013-06-03T15:57:55Z","updated_at":"2017-12-07T17:43:39Z","pushed_at":"2017-12-09T14:05:01Z","git_url":"git://github.com/rsyslog/rsyslog.git","ssh_url":"git@github.com:rsyslog/rsyslog.git","clone_url":"https://github.com/rsyslog/rsyslog.git","svn_url":"https://github.com/rsyslog/rsyslog","homepage":"http://www.rsyslog.com","size":45936,"stargazers_count":624,"watchers_count":624,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":324,"mirror_url":null,"archived":false,"open_issues_count":320,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":324,"open_issues":320,"watchers":624,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rsyslog/rsyslog/pulls/2185"},"html":{"href":"https://github.com/rsyslog/rsyslog/pull/2185"},"issue":{"href":"https://api.github.com/repos/rsyslog/rsyslog/issues/2185"},"comments":{"href":"https://api.github.com/repos/rsyslog/rsyslog/issues/2185/comments"},"review_comments":{"href":"https://api.github.com/repos/rsyslog/rsyslog/pulls/2185/comments"},"review_comment":{"href":"https://api.github.com/repos/rsyslog/rsyslog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rsyslog/rsyslog/pulls/2185/commits"},"statuses":{"href":"https://api.github.com/repos/rsyslog/rsyslog/statuses/b63d3051bcfe87a24cb21bee25c598632455ff6d"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":163,"deletions":95,"changed_files":7}}
{"actor":{"display_login":"rgerhards"}}