{"action":"created","comment":{"url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/comments/81868677","pull_request_review_id":2817519,"id":81868677,"diff_hunk":"@@ -127,14 +127,21 @@ class Job {\n \n   createLog (message, type = enums.log.information, status = this.status) {\n     logger(`createLog [${message}] [${type}] [${status}]`)\n-    return {\n+    const newLog ={\n       date: new Date(),\n       queueId: this.q.id,\n       type: type,\n       status: status,\n       retryCount: this.retryCount,\n-      message: message\n+      message: null\n     }\n+    if(typeof message == 'string'){","path":"src/job.js","position":14,"original_position":14,"commit_id":"c2bb251d6bbb090b3bb84e9b2a3eb5fce51b1c4c","original_commit_id":"c2bb251d6bbb090b3bb84e9b2a3eb5fce51b1c4c","user":{"login":"grantcarthew","id":572141,"avatar_url":"https://avatars.githubusercontent.com/u/572141?v=3","gravatar_id":"","url":"https://api.github.com/users/grantcarthew","html_url":"https://github.com/grantcarthew","followers_url":"https://api.github.com/users/grantcarthew/followers","following_url":"https://api.github.com/users/grantcarthew/following{/other_user}","gists_url":"https://api.github.com/users/grantcarthew/gists{/gist_id}","starred_url":"https://api.github.com/users/grantcarthew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantcarthew/subscriptions","organizations_url":"https://api.github.com/users/grantcarthew/orgs","repos_url":"https://api.github.com/users/grantcarthew/repos","events_url":"https://api.github.com/users/grantcarthew/events{/privacy}","received_events_url":"https://api.github.com/users/grantcarthew/received_events","type":"User","site_admin":false},"body":"is.string(message)","created_at":"2016-10-04T22:34:42Z","updated_at":"2016-10-04T22:34:42Z","html_url":"https://github.com/grantcarthew/node-rethinkdb-job-queue/pull/18#discussion_r81868677","pull_request_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/comments/81868677"},"html":{"href":"https://github.com/grantcarthew/node-rethinkdb-job-queue/pull/18#discussion_r81868677"},"pull_request":{"href":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/18","id":87918330,"html_url":"https://github.com/grantcarthew/node-rethinkdb-job-queue/pull/18","diff_url":"https://github.com/grantcarthew/node-rethinkdb-job-queue/pull/18.diff","patch_url":"https://github.com/grantcarthew/node-rethinkdb-job-queue/pull/18.patch","issue_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/issues/18","number":18,"state":"open","locked":false,"title":"Passing an object to `createLog` adds it to  a `data` key to the log entry","user":{"login":"marcoalbarelli","id":789508,"avatar_url":"https://avatars.githubusercontent.com/u/789508?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoalbarelli","html_url":"https://github.com/marcoalbarelli","followers_url":"https://api.github.com/users/marcoalbarelli/followers","following_url":"https://api.github.com/users/marcoalbarelli/following{/other_user}","gists_url":"https://api.github.com/users/marcoalbarelli/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoalbarelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoalbarelli/subscriptions","organizations_url":"https://api.github.com/users/marcoalbarelli/orgs","repos_url":"https://api.github.com/users/marcoalbarelli/repos","events_url":"https://api.github.com/users/marcoalbarelli/events{/privacy}","received_events_url":"https://api.github.com/users/marcoalbarelli/received_events","type":"User","site_admin":false},"body":"This is a proposed solution for #17 \r\n\r\nI'm _really_ new to using tape so I might have overlloked something. If that is the case let me know\r\n\r\nTests are green apart from one that fails this way on master:\r\n```\r\n    ✖ test exited without ending\r\n    -----------------------------\r\n      operator: fail\r\n\r\n\r\n\r\n\r\n  Failed Tests: There was 1 failure\r\n\r\n    queue-change: Event Summary\r\n\r\n      ✖ test exited without ending```","created_at":"2016-10-04T15:31:38Z","updated_at":"2016-10-04T22:34:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21a60771e8adfc10d97c9998d1259af819901ff0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/18/commits","review_comments_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/18/comments","review_comment_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/issues/18/comments","statuses_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/statuses/c2bb251d6bbb090b3bb84e9b2a3eb5fce51b1c4c","head":{"label":"marcoalbarelli:master","ref":"master","sha":"c2bb251d6bbb090b3bb84e9b2a3eb5fce51b1c4c","user":{"login":"marcoalbarelli","id":789508,"avatar_url":"https://avatars.githubusercontent.com/u/789508?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoalbarelli","html_url":"https://github.com/marcoalbarelli","followers_url":"https://api.github.com/users/marcoalbarelli/followers","following_url":"https://api.github.com/users/marcoalbarelli/following{/other_user}","gists_url":"https://api.github.com/users/marcoalbarelli/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoalbarelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoalbarelli/subscriptions","organizations_url":"https://api.github.com/users/marcoalbarelli/orgs","repos_url":"https://api.github.com/users/marcoalbarelli/repos","events_url":"https://api.github.com/users/marcoalbarelli/events{/privacy}","received_events_url":"https://api.github.com/users/marcoalbarelli/received_events","type":"User","site_admin":false},"repo":{"id":67447665,"name":"node-rethinkdb-job-queue","full_name":"marcoalbarelli/node-rethinkdb-job-queue","owner":{"login":"marcoalbarelli","id":789508,"avatar_url":"https://avatars.githubusercontent.com/u/789508?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoalbarelli","html_url":"https://github.com/marcoalbarelli","followers_url":"https://api.github.com/users/marcoalbarelli/followers","following_url":"https://api.github.com/users/marcoalbarelli/following{/other_user}","gists_url":"https://api.github.com/users/marcoalbarelli/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoalbarelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoalbarelli/subscriptions","organizations_url":"https://api.github.com/users/marcoalbarelli/orgs","repos_url":"https://api.github.com/users/marcoalbarelli/repos","events_url":"https://api.github.com/users/marcoalbarelli/events{/privacy}","received_events_url":"https://api.github.com/users/marcoalbarelli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcoalbarelli/node-rethinkdb-job-queue","description":"A persistent job or task queue backed by RethinkDB.","fork":true,"url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue","forks_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/forks","keys_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/teams","hooks_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/hooks","issue_events_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/issues/events{/number}","events_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/events","assignees_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/assignees{/user}","branches_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/branches{/branch}","tags_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/tags","blobs_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/statuses/{sha}","languages_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/languages","stargazers_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/stargazers","contributors_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/contributors","subscribers_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/subscribers","subscription_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/subscription","commits_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/contents/{+path}","compare_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/merges","archive_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/downloads","issues_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/issues{/number}","pulls_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/pulls{/number}","milestones_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/milestones{/number}","notifications_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/labels{/name}","releases_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/releases{/id}","deployments_url":"https://api.github.com/repos/marcoalbarelli/node-rethinkdb-job-queue/deployments","created_at":"2016-09-05T20:02:04Z","updated_at":"2016-09-05T20:02:06Z","pushed_at":"2016-10-04T15:28:13Z","git_url":"git://github.com/marcoalbarelli/node-rethinkdb-job-queue.git","ssh_url":"git@github.com:marcoalbarelli/node-rethinkdb-job-queue.git","clone_url":"https://github.com/marcoalbarelli/node-rethinkdb-job-queue.git","svn_url":"https://github.com/marcoalbarelli/node-rethinkdb-job-queue","homepage":"https://github.com/grantcarthew/node-rethinkdb-job-queue/wiki","size":559,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"grantcarthew:master","ref":"master","sha":"b6c01690d1986ce69801730c76b198756257a3f9","user":{"login":"grantcarthew","id":572141,"avatar_url":"https://avatars.githubusercontent.com/u/572141?v=3","gravatar_id":"","url":"https://api.github.com/users/grantcarthew","html_url":"https://github.com/grantcarthew","followers_url":"https://api.github.com/users/grantcarthew/followers","following_url":"https://api.github.com/users/grantcarthew/following{/other_user}","gists_url":"https://api.github.com/users/grantcarthew/gists{/gist_id}","starred_url":"https://api.github.com/users/grantcarthew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantcarthew/subscriptions","organizations_url":"https://api.github.com/users/grantcarthew/orgs","repos_url":"https://api.github.com/users/grantcarthew/repos","events_url":"https://api.github.com/users/grantcarthew/events{/privacy}","received_events_url":"https://api.github.com/users/grantcarthew/received_events","type":"User","site_admin":false},"repo":{"id":58178576,"name":"node-rethinkdb-job-queue","full_name":"grantcarthew/node-rethinkdb-job-queue","owner":{"login":"grantcarthew","id":572141,"avatar_url":"https://avatars.githubusercontent.com/u/572141?v=3","gravatar_id":"","url":"https://api.github.com/users/grantcarthew","html_url":"https://github.com/grantcarthew","followers_url":"https://api.github.com/users/grantcarthew/followers","following_url":"https://api.github.com/users/grantcarthew/following{/other_user}","gists_url":"https://api.github.com/users/grantcarthew/gists{/gist_id}","starred_url":"https://api.github.com/users/grantcarthew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantcarthew/subscriptions","organizations_url":"https://api.github.com/users/grantcarthew/orgs","repos_url":"https://api.github.com/users/grantcarthew/repos","events_url":"https://api.github.com/users/grantcarthew/events{/privacy}","received_events_url":"https://api.github.com/users/grantcarthew/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grantcarthew/node-rethinkdb-job-queue","description":"A persistent job or task queue backed by RethinkDB.","fork":false,"url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue","forks_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/forks","keys_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/teams","hooks_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/hooks","issue_events_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/issues/events{/number}","events_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/events","assignees_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/assignees{/user}","branches_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/branches{/branch}","tags_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/tags","blobs_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/git/refs{/sha}","trees_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/statuses/{sha}","languages_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/languages","stargazers_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/stargazers","contributors_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/contributors","subscribers_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/subscribers","subscription_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/subscription","commits_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/commits{/sha}","git_commits_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/git/commits{/sha}","comments_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/comments{/number}","issue_comment_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/issues/comments{/number}","contents_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/contents/{+path}","compare_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/merges","archive_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/downloads","issues_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/issues{/number}","pulls_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls{/number}","milestones_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/milestones{/number}","notifications_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/labels{/name}","releases_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/releases{/id}","deployments_url":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/deployments","created_at":"2016-05-06T03:33:05Z","updated_at":"2016-10-04T13:07:50Z","pushed_at":"2016-10-04T15:31:38Z","git_url":"git://github.com/grantcarthew/node-rethinkdb-job-queue.git","ssh_url":"git@github.com:grantcarthew/node-rethinkdb-job-queue.git","clone_url":"https://github.com/grantcarthew/node-rethinkdb-job-queue.git","svn_url":"https://github.com/grantcarthew/node-rethinkdb-job-queue","homepage":"https://github.com/grantcarthew/node-rethinkdb-job-queue/wiki","size":553,"stargazers_count":71,"watchers_count":71,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":71,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/18"},"html":{"href":"https://github.com/grantcarthew/node-rethinkdb-job-queue/pull/18"},"issue":{"href":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/issues/18"},"comments":{"href":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/grantcarthew/node-rethinkdb-job-queue/statuses/c2bb251d6bbb090b3bb84e9b2a3eb5fce51b1c4c"}}}}
{"actor":{"display_login":"grantcarthew"}}