{"action":"created","comment":{"url":"https://api.github.com/repos/qumram/qlogger/pulls/comments/71872772","id":71872772,"diff_hunk":"@@ -17,8 +18,13 @@ function getTransportConfig (params) {\n         params.file = params.file;\n     }\n \n-    // make sure the folder exists, if we dont have permissions it will throw\n-    mkdirp.sync(path.dirname(params.file));\n+    try {\n+        mkdirp.sync(path.dirname(params.file));\n+        fs.accessSync(path.dirname(params.file), fs.W_OK);\n+    } catch (err) {\n+        throw new Error('Not enough permissions to write logs to ' + params.file);","path":"lib/transports/file.js","position":18,"original_position":18,"commit_id":"4298a76c647e4082ab24f14aaaf8e20b26d07697","original_commit_id":"4298a76c647e4082ab24f14aaaf8e20b26d07697","user":{"login":"jmasramon","id":3729967,"avatar_url":"https://avatars.githubusercontent.com/u/3729967?v=3","gravatar_id":"","url":"https://api.github.com/users/jmasramon","html_url":"https://github.com/jmasramon","followers_url":"https://api.github.com/users/jmasramon/followers","following_url":"https://api.github.com/users/jmasramon/following{/other_user}","gists_url":"https://api.github.com/users/jmasramon/gists{/gist_id}","starred_url":"https://api.github.com/users/jmasramon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmasramon/subscriptions","organizations_url":"https://api.github.com/users/jmasramon/orgs","repos_url":"https://api.github.com/users/jmasramon/repos","events_url":"https://api.github.com/users/jmasramon/events{/privacy}","received_events_url":"https://api.github.com/users/jmasramon/received_events","type":"User","site_admin":false},"body":"Is it really this the only reason it can ever fail? What if it already exists? Or fs full? ","created_at":"2016-07-22T12:47:37Z","updated_at":"2016-07-22T12:47:37Z","html_url":"https://github.com/qumram/qlogger/pull/7#discussion_r71872772","pull_request_url":"https://api.github.com/repos/qumram/qlogger/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/qumram/qlogger/pulls/comments/71872772"},"html":{"href":"https://github.com/qumram/qlogger/pull/7#discussion_r71872772"},"pull_request":{"href":"https://api.github.com/repos/qumram/qlogger/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/qumram/qlogger/pulls/7","id":77441240,"html_url":"https://github.com/qumram/qlogger/pull/7","diff_url":"https://github.com/qumram/qlogger/pull/7.diff","patch_url":"https://github.com/qumram/qlogger/pull/7.patch","issue_url":"https://api.github.com/repos/qumram/qlogger/issues/7","number":7,"state":"open","locked":false,"title":"QR 3345 Services provides feedback when starting in background mode","user":{"login":"git-jiby-me","id":1772824,"avatar_url":"https://avatars.githubusercontent.com/u/1772824?v=3","gravatar_id":"","url":"https://api.github.com/users/git-jiby-me","html_url":"https://github.com/git-jiby-me","followers_url":"https://api.github.com/users/git-jiby-me/followers","following_url":"https://api.github.com/users/git-jiby-me/following{/other_user}","gists_url":"https://api.github.com/users/git-jiby-me/gists{/gist_id}","starred_url":"https://api.github.com/users/git-jiby-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git-jiby-me/subscriptions","organizations_url":"https://api.github.com/users/git-jiby-me/orgs","repos_url":"https://api.github.com/users/git-jiby-me/repos","events_url":"https://api.github.com/users/git-jiby-me/events{/privacy}","received_events_url":"https://api.github.com/users/git-jiby-me/received_events","type":"User","site_admin":false},"body":"Enable service framework to provide more feedback and act more intelligent when starting up to handle initialisation issues, and not hanging in started state without actually starting.\r\n\r\nTODO After merge\r\n- [ ] Publish to npm","created_at":"2016-07-14T11:33:31Z","updated_at":"2016-07-22T12:47:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02c4119295a91f6c11702d5f999c489567a538f0","assignee":{"login":"jmasramon","id":3729967,"avatar_url":"https://avatars.githubusercontent.com/u/3729967?v=3","gravatar_id":"","url":"https://api.github.com/users/jmasramon","html_url":"https://github.com/jmasramon","followers_url":"https://api.github.com/users/jmasramon/followers","following_url":"https://api.github.com/users/jmasramon/following{/other_user}","gists_url":"https://api.github.com/users/jmasramon/gists{/gist_id}","starred_url":"https://api.github.com/users/jmasramon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmasramon/subscriptions","organizations_url":"https://api.github.com/users/jmasramon/orgs","repos_url":"https://api.github.com/users/jmasramon/repos","events_url":"https://api.github.com/users/jmasramon/events{/privacy}","received_events_url":"https://api.github.com/users/jmasramon/received_events","type":"User","site_admin":false},"assignees":[{"login":"jmasramon","id":3729967,"avatar_url":"https://avatars.githubusercontent.com/u/3729967?v=3","gravatar_id":"","url":"https://api.github.com/users/jmasramon","html_url":"https://github.com/jmasramon","followers_url":"https://api.github.com/users/jmasramon/followers","following_url":"https://api.github.com/users/jmasramon/following{/other_user}","gists_url":"https://api.github.com/users/jmasramon/gists{/gist_id}","starred_url":"https://api.github.com/users/jmasramon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmasramon/subscriptions","organizations_url":"https://api.github.com/users/jmasramon/orgs","repos_url":"https://api.github.com/users/jmasramon/repos","events_url":"https://api.github.com/users/jmasramon/events{/privacy}","received_events_url":"https://api.github.com/users/jmasramon/received_events","type":"User","site_admin":false},{"login":"ngalanis","id":9820842,"avatar_url":"https://avatars.githubusercontent.com/u/9820842?v=3","gravatar_id":"","url":"https://api.github.com/users/ngalanis","html_url":"https://github.com/ngalanis","followers_url":"https://api.github.com/users/ngalanis/followers","following_url":"https://api.github.com/users/ngalanis/following{/other_user}","gists_url":"https://api.github.com/users/ngalanis/gists{/gist_id}","starred_url":"https://api.github.com/users/ngalanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngalanis/subscriptions","organizations_url":"https://api.github.com/users/ngalanis/orgs","repos_url":"https://api.github.com/users/ngalanis/repos","events_url":"https://api.github.com/users/ngalanis/events{/privacy}","received_events_url":"https://api.github.com/users/ngalanis/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/qumram/qlogger/milestones/1","html_url":"https://github.com/qumram/qlogger/milestones/2016-12%20Sprint","labels_url":"https://api.github.com/repos/qumram/qlogger/milestones/1/labels","id":1883081,"number":1,"title":"2016-12 Sprint","description":"","creator":{"login":"git-jiby-me","id":1772824,"avatar_url":"https://avatars.githubusercontent.com/u/1772824?v=3","gravatar_id":"","url":"https://api.github.com/users/git-jiby-me","html_url":"https://github.com/git-jiby-me","followers_url":"https://api.github.com/users/git-jiby-me/followers","following_url":"https://api.github.com/users/git-jiby-me/following{/other_user}","gists_url":"https://api.github.com/users/git-jiby-me/gists{/gist_id}","starred_url":"https://api.github.com/users/git-jiby-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git-jiby-me/subscriptions","organizations_url":"https://api.github.com/users/git-jiby-me/orgs","repos_url":"https://api.github.com/users/git-jiby-me/repos","events_url":"https://api.github.com/users/git-jiby-me/events{/privacy}","received_events_url":"https://api.github.com/users/git-jiby-me/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-07-14T11:34:37Z","updated_at":"2016-07-14T11:34:55Z","due_on":"2016-07-27T16:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/qumram/qlogger/pulls/7/commits","review_comments_url":"https://api.github.com/repos/qumram/qlogger/pulls/7/comments","review_comment_url":"https://api.github.com/repos/qumram/qlogger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qumram/qlogger/issues/7/comments","statuses_url":"https://api.github.com/repos/qumram/qlogger/statuses/4298a76c647e4082ab24f14aaaf8e20b26d07697","head":{"label":"qumram:feature/QR-3345_feedback-when-service-initialises","ref":"feature/QR-3345_feedback-when-service-initialises","sha":"4298a76c647e4082ab24f14aaaf8e20b26d07697","user":{"login":"qumram","id":7060872,"avatar_url":"https://avatars.githubusercontent.com/u/7060872?v=3","gravatar_id":"","url":"https://api.github.com/users/qumram","html_url":"https://github.com/qumram","followers_url":"https://api.github.com/users/qumram/followers","following_url":"https://api.github.com/users/qumram/following{/other_user}","gists_url":"https://api.github.com/users/qumram/gists{/gist_id}","starred_url":"https://api.github.com/users/qumram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qumram/subscriptions","organizations_url":"https://api.github.com/users/qumram/orgs","repos_url":"https://api.github.com/users/qumram/repos","events_url":"https://api.github.com/users/qumram/events{/privacy}","received_events_url":"https://api.github.com/users/qumram/received_events","type":"Organization","site_admin":false},"repo":{"id":36852784,"name":"qlogger","full_name":"qumram/qlogger","owner":{"login":"qumram","id":7060872,"avatar_url":"https://avatars.githubusercontent.com/u/7060872?v=3","gravatar_id":"","url":"https://api.github.com/users/qumram","html_url":"https://github.com/qumram","followers_url":"https://api.github.com/users/qumram/followers","following_url":"https://api.github.com/users/qumram/following{/other_user}","gists_url":"https://api.github.com/users/qumram/gists{/gist_id}","starred_url":"https://api.github.com/users/qumram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qumram/subscriptions","organizations_url":"https://api.github.com/users/qumram/orgs","repos_url":"https://api.github.com/users/qumram/repos","events_url":"https://api.github.com/users/qumram/events{/privacy}","received_events_url":"https://api.github.com/users/qumram/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qumram/qlogger","description":"","fork":false,"url":"https://api.github.com/repos/qumram/qlogger","forks_url":"https://api.github.com/repos/qumram/qlogger/forks","keys_url":"https://api.github.com/repos/qumram/qlogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qumram/qlogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qumram/qlogger/teams","hooks_url":"https://api.github.com/repos/qumram/qlogger/hooks","issue_events_url":"https://api.github.com/repos/qumram/qlogger/issues/events{/number}","events_url":"https://api.github.com/repos/qumram/qlogger/events","assignees_url":"https://api.github.com/repos/qumram/qlogger/assignees{/user}","branches_url":"https://api.github.com/repos/qumram/qlogger/branches{/branch}","tags_url":"https://api.github.com/repos/qumram/qlogger/tags","blobs_url":"https://api.github.com/repos/qumram/qlogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qumram/qlogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qumram/qlogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/qumram/qlogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qumram/qlogger/statuses/{sha}","languages_url":"https://api.github.com/repos/qumram/qlogger/languages","stargazers_url":"https://api.github.com/repos/qumram/qlogger/stargazers","contributors_url":"https://api.github.com/repos/qumram/qlogger/contributors","subscribers_url":"https://api.github.com/repos/qumram/qlogger/subscribers","subscription_url":"https://api.github.com/repos/qumram/qlogger/subscription","commits_url":"https://api.github.com/repos/qumram/qlogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/qumram/qlogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/qumram/qlogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/qumram/qlogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/qumram/qlogger/contents/{+path}","compare_url":"https://api.github.com/repos/qumram/qlogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qumram/qlogger/merges","archive_url":"https://api.github.com/repos/qumram/qlogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qumram/qlogger/downloads","issues_url":"https://api.github.com/repos/qumram/qlogger/issues{/number}","pulls_url":"https://api.github.com/repos/qumram/qlogger/pulls{/number}","milestones_url":"https://api.github.com/repos/qumram/qlogger/milestones{/number}","notifications_url":"https://api.github.com/repos/qumram/qlogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qumram/qlogger/labels{/name}","releases_url":"https://api.github.com/repos/qumram/qlogger/releases{/id}","deployments_url":"https://api.github.com/repos/qumram/qlogger/deployments","created_at":"2015-06-04T06:35:10Z","updated_at":"2016-04-14T16:07:24Z","pushed_at":"2016-07-14T12:12:42Z","git_url":"git://github.com/qumram/qlogger.git","ssh_url":"git@github.com:qumram/qlogger.git","clone_url":"https://github.com/qumram/qlogger.git","svn_url":"https://github.com/qumram/qlogger","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"base":{"label":"qumram:dev","ref":"dev","sha":"9adf2d7ad9b82b29656dd68be43376bcf4a8cd54","user":{"login":"qumram","id":7060872,"avatar_url":"https://avatars.githubusercontent.com/u/7060872?v=3","gravatar_id":"","url":"https://api.github.com/users/qumram","html_url":"https://github.com/qumram","followers_url":"https://api.github.com/users/qumram/followers","following_url":"https://api.github.com/users/qumram/following{/other_user}","gists_url":"https://api.github.com/users/qumram/gists{/gist_id}","starred_url":"https://api.github.com/users/qumram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qumram/subscriptions","organizations_url":"https://api.github.com/users/qumram/orgs","repos_url":"https://api.github.com/users/qumram/repos","events_url":"https://api.github.com/users/qumram/events{/privacy}","received_events_url":"https://api.github.com/users/qumram/received_events","type":"Organization","site_admin":false},"repo":{"id":36852784,"name":"qlogger","full_name":"qumram/qlogger","owner":{"login":"qumram","id":7060872,"avatar_url":"https://avatars.githubusercontent.com/u/7060872?v=3","gravatar_id":"","url":"https://api.github.com/users/qumram","html_url":"https://github.com/qumram","followers_url":"https://api.github.com/users/qumram/followers","following_url":"https://api.github.com/users/qumram/following{/other_user}","gists_url":"https://api.github.com/users/qumram/gists{/gist_id}","starred_url":"https://api.github.com/users/qumram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qumram/subscriptions","organizations_url":"https://api.github.com/users/qumram/orgs","repos_url":"https://api.github.com/users/qumram/repos","events_url":"https://api.github.com/users/qumram/events{/privacy}","received_events_url":"https://api.github.com/users/qumram/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qumram/qlogger","description":"","fork":false,"url":"https://api.github.com/repos/qumram/qlogger","forks_url":"https://api.github.com/repos/qumram/qlogger/forks","keys_url":"https://api.github.com/repos/qumram/qlogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qumram/qlogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qumram/qlogger/teams","hooks_url":"https://api.github.com/repos/qumram/qlogger/hooks","issue_events_url":"https://api.github.com/repos/qumram/qlogger/issues/events{/number}","events_url":"https://api.github.com/repos/qumram/qlogger/events","assignees_url":"https://api.github.com/repos/qumram/qlogger/assignees{/user}","branches_url":"https://api.github.com/repos/qumram/qlogger/branches{/branch}","tags_url":"https://api.github.com/repos/qumram/qlogger/tags","blobs_url":"https://api.github.com/repos/qumram/qlogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qumram/qlogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qumram/qlogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/qumram/qlogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qumram/qlogger/statuses/{sha}","languages_url":"https://api.github.com/repos/qumram/qlogger/languages","stargazers_url":"https://api.github.com/repos/qumram/qlogger/stargazers","contributors_url":"https://api.github.com/repos/qumram/qlogger/contributors","subscribers_url":"https://api.github.com/repos/qumram/qlogger/subscribers","subscription_url":"https://api.github.com/repos/qumram/qlogger/subscription","commits_url":"https://api.github.com/repos/qumram/qlogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/qumram/qlogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/qumram/qlogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/qumram/qlogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/qumram/qlogger/contents/{+path}","compare_url":"https://api.github.com/repos/qumram/qlogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qumram/qlogger/merges","archive_url":"https://api.github.com/repos/qumram/qlogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qumram/qlogger/downloads","issues_url":"https://api.github.com/repos/qumram/qlogger/issues{/number}","pulls_url":"https://api.github.com/repos/qumram/qlogger/pulls{/number}","milestones_url":"https://api.github.com/repos/qumram/qlogger/milestones{/number}","notifications_url":"https://api.github.com/repos/qumram/qlogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qumram/qlogger/labels{/name}","releases_url":"https://api.github.com/repos/qumram/qlogger/releases{/id}","deployments_url":"https://api.github.com/repos/qumram/qlogger/deployments","created_at":"2015-06-04T06:35:10Z","updated_at":"2016-04-14T16:07:24Z","pushed_at":"2016-07-14T12:12:42Z","git_url":"git://github.com/qumram/qlogger.git","ssh_url":"git@github.com:qumram/qlogger.git","clone_url":"https://github.com/qumram/qlogger.git","svn_url":"https://github.com/qumram/qlogger","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/qumram/qlogger/pulls/7"},"html":{"href":"https://github.com/qumram/qlogger/pull/7"},"issue":{"href":"https://api.github.com/repos/qumram/qlogger/issues/7"},"comments":{"href":"https://api.github.com/repos/qumram/qlogger/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/qumram/qlogger/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/qumram/qlogger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qumram/qlogger/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/qumram/qlogger/statuses/4298a76c647e4082ab24f14aaaf8e20b26d07697"}}}}
{"actor":{"display_login":"jmasramon"}}