{"action":"created","comment":{"url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/comments/172362523","pull_request_review_id":101366699,"id":172362523,"diff_hunk":"@@ -325,11 +325,17 @@ module.exports = {\n         }\n       }\n       // run the given script on the deployed lambda\n-      console.log(`${os.EOL}\\tInvoking test Lambda${os.EOL}`)\n+      if (!(options.jo || options.jsonOnly)) {\n+        console.log(`${os.EOL}\\tInvoking test Lambda${os.EOL}`)\n+      }\n       return impl.serverlessRunner(options).then((result) => {\n-        console.log(completeMessage)\n+        if (!(options.jo || options.jsonOnly)) {\n+          console.log(completeMessage)\n+        }\n         if (options.acceptance) {\n-          console.log('Results:')\n+          if (!(options.jo || options.jsonOnly)) {\n+            console.log('Results:')\n+          }","path":"lib/index.js","position":35,"original_position":35,"commit_id":"9fecefe89aeaa76819d0891aaf9631e1d4a3da4f","original_commit_id":"9fecefe89aeaa76819d0891aaf9631e1d4a3da4f","user":{"login":"erikerikson","id":571200,"avatar_url":"https://avatars1.githubusercontent.com/u/571200?v=4","gravatar_id":"","url":"https://api.github.com/users/erikerikson","html_url":"https://github.com/erikerikson","followers_url":"https://api.github.com/users/erikerikson/followers","following_url":"https://api.github.com/users/erikerikson/following{/other_user}","gists_url":"https://api.github.com/users/erikerikson/gists{/gist_id}","starred_url":"https://api.github.com/users/erikerikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikerikson/subscriptions","organizations_url":"https://api.github.com/users/erikerikson/orgs","repos_url":"https://api.github.com/users/erikerikson/repos","events_url":"https://api.github.com/users/erikerikson/events{/privacy}","received_events_url":"https://api.github.com/users/erikerikson/received_events","type":"User","site_admin":false},"body":"this seems good.  incoming.","created_at":"2018-03-05T23:18:32Z","updated_at":"2018-03-05T23:18:32Z","html_url":"https://github.com/Nordstrom/serverless-artillery/pull/105#discussion_r172362523","pull_request_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/105","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/comments/172362523"},"html":{"href":"https://github.com/Nordstrom/serverless-artillery/pull/105#discussion_r172362523"},"pull_request":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/105"}},"in_reply_to_id":163921056},"pull_request":{"url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/105","id":165022190,"html_url":"https://github.com/Nordstrom/serverless-artillery/pull/105","diff_url":"https://github.com/Nordstrom/serverless-artillery/pull/105.diff","patch_url":"https://github.com/Nordstrom/serverless-artillery/pull/105.patch","issue_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/105","number":105,"state":"open","locked":false,"title":"Add `--jo` & `--jsonOnly` to Invoke, Fix console.log use (fix #100)","user":{"login":"erikerikson","id":571200,"avatar_url":"https://avatars1.githubusercontent.com/u/571200?v=4","gravatar_id":"","url":"https://api.github.com/users/erikerikson","html_url":"https://github.com/erikerikson","followers_url":"https://api.github.com/users/erikerikson/followers","following_url":"https://api.github.com/users/erikerikson/following{/other_user}","gists_url":"https://api.github.com/users/erikerikson/gists{/gist_id}","starred_url":"https://api.github.com/users/erikerikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikerikson/subscriptions","organizations_url":"https://api.github.com/users/erikerikson/orgs","repos_url":"https://api.github.com/users/erikerikson/repos","events_url":"https://api.github.com/users/erikerikson/events{/privacy}","received_events_url":"https://api.github.com/users/erikerikson/received_events","type":"User","site_admin":false},"body":"This PR assumes that #103 is merged prior.\r\n\r\nAdd the flags `--jo` and `--jsonOnly` to the invoke command that have the effect of suppressing all console output except for the JSON payload returned by the remote function.  This enables the piping of output to tools such as jq.\r\n\r\nUse `log`, `warn`, and `error` as appropriate instead of just `log`\r\nClean up unintended logging and a commented out bit of logging that was for testing\r\n\r\nBetween these two changes, this commit fixes #100\r\n\r\nFor convenience, add a \"light\" script to the package.json that runs all tests excluding the long serverless-artillery.spec.js and npm.spec.js tests","created_at":"2018-01-25T03:38:38Z","updated_at":"2018-03-05T23:18:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b81f895471ce401ec230e5586b1a72a342fe4f7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/105/commits","review_comments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/105/comments","review_comment_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/105/comments","statuses_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/statuses/9fecefe89aeaa76819d0891aaf9631e1d4a3da4f","head":{"label":"Nordstrom:fix-console-log-use-#100","ref":"fix-console-log-use-#100","sha":"9fecefe89aeaa76819d0891aaf9631e1d4a3da4f","user":{"login":"Nordstrom","id":2488485,"avatar_url":"https://avatars3.githubusercontent.com/u/2488485?v=4","gravatar_id":"","url":"https://api.github.com/users/Nordstrom","html_url":"https://github.com/Nordstrom","followers_url":"https://api.github.com/users/Nordstrom/followers","following_url":"https://api.github.com/users/Nordstrom/following{/other_user}","gists_url":"https://api.github.com/users/Nordstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Nordstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nordstrom/subscriptions","organizations_url":"https://api.github.com/users/Nordstrom/orgs","repos_url":"https://api.github.com/users/Nordstrom/repos","events_url":"https://api.github.com/users/Nordstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Nordstrom/received_events","type":"Organization","site_admin":false},"repo":{"id":65584082,"name":"serverless-artillery","full_name":"Nordstrom/serverless-artillery","owner":{"login":"Nordstrom","id":2488485,"avatar_url":"https://avatars3.githubusercontent.com/u/2488485?v=4","gravatar_id":"","url":"https://api.github.com/users/Nordstrom","html_url":"https://github.com/Nordstrom","followers_url":"https://api.github.com/users/Nordstrom/followers","following_url":"https://api.github.com/users/Nordstrom/following{/other_user}","gists_url":"https://api.github.com/users/Nordstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Nordstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nordstrom/subscriptions","organizations_url":"https://api.github.com/users/Nordstrom/orgs","repos_url":"https://api.github.com/users/Nordstrom/repos","events_url":"https://api.github.com/users/Nordstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Nordstrom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nordstrom/serverless-artillery","description":"Combine serverless with artillery and you get serverless-artillery for instant, cheap, and easy performance testing at scale.","fork":false,"url":"https://api.github.com/repos/Nordstrom/serverless-artillery","forks_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/forks","keys_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/teams","hooks_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/hooks","issue_events_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/events{/number}","events_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/events","assignees_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/assignees{/user}","branches_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/branches{/branch}","tags_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/tags","blobs_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/statuses/{sha}","languages_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/languages","stargazers_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/stargazers","contributors_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/contributors","subscribers_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/subscribers","subscription_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/subscription","commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/contents/{+path}","compare_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/merges","archive_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/downloads","issues_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues{/number}","pulls_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls{/number}","milestones_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/milestones{/number}","notifications_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/labels{/name}","releases_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/releases{/id}","deployments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/deployments","created_at":"2016-08-12T21:17:28Z","updated_at":"2018-03-04T21:07:34Z","pushed_at":"2018-02-23T21:54:00Z","git_url":"git://github.com/Nordstrom/serverless-artillery.git","ssh_url":"git@github.com:Nordstrom/serverless-artillery.git","clone_url":"https://github.com/Nordstrom/serverless-artillery.git","svn_url":"https://github.com/Nordstrom/serverless-artillery","homepage":"","size":444,"stargazers_count":156,"watchers_count":156,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":27,"open_issues":13,"watchers":156,"default_branch":"master"}},"base":{"label":"Nordstrom:master","ref":"master","sha":"ad2be2729dbc2b984bf3e474c2fadbcffaea7959","user":{"login":"Nordstrom","id":2488485,"avatar_url":"https://avatars3.githubusercontent.com/u/2488485?v=4","gravatar_id":"","url":"https://api.github.com/users/Nordstrom","html_url":"https://github.com/Nordstrom","followers_url":"https://api.github.com/users/Nordstrom/followers","following_url":"https://api.github.com/users/Nordstrom/following{/other_user}","gists_url":"https://api.github.com/users/Nordstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Nordstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nordstrom/subscriptions","organizations_url":"https://api.github.com/users/Nordstrom/orgs","repos_url":"https://api.github.com/users/Nordstrom/repos","events_url":"https://api.github.com/users/Nordstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Nordstrom/received_events","type":"Organization","site_admin":false},"repo":{"id":65584082,"name":"serverless-artillery","full_name":"Nordstrom/serverless-artillery","owner":{"login":"Nordstrom","id":2488485,"avatar_url":"https://avatars3.githubusercontent.com/u/2488485?v=4","gravatar_id":"","url":"https://api.github.com/users/Nordstrom","html_url":"https://github.com/Nordstrom","followers_url":"https://api.github.com/users/Nordstrom/followers","following_url":"https://api.github.com/users/Nordstrom/following{/other_user}","gists_url":"https://api.github.com/users/Nordstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Nordstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nordstrom/subscriptions","organizations_url":"https://api.github.com/users/Nordstrom/orgs","repos_url":"https://api.github.com/users/Nordstrom/repos","events_url":"https://api.github.com/users/Nordstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Nordstrom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nordstrom/serverless-artillery","description":"Combine serverless with artillery and you get serverless-artillery for instant, cheap, and easy performance testing at scale.","fork":false,"url":"https://api.github.com/repos/Nordstrom/serverless-artillery","forks_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/forks","keys_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/teams","hooks_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/hooks","issue_events_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/events{/number}","events_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/events","assignees_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/assignees{/user}","branches_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/branches{/branch}","tags_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/tags","blobs_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/statuses/{sha}","languages_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/languages","stargazers_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/stargazers","contributors_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/contributors","subscribers_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/subscribers","subscription_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/subscription","commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/contents/{+path}","compare_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/merges","archive_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/downloads","issues_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues{/number}","pulls_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls{/number}","milestones_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/milestones{/number}","notifications_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/labels{/name}","releases_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/releases{/id}","deployments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/deployments","created_at":"2016-08-12T21:17:28Z","updated_at":"2018-03-04T21:07:34Z","pushed_at":"2018-02-23T21:54:00Z","git_url":"git://github.com/Nordstrom/serverless-artillery.git","ssh_url":"git@github.com:Nordstrom/serverless-artillery.git","clone_url":"https://github.com/Nordstrom/serverless-artillery.git","svn_url":"https://github.com/Nordstrom/serverless-artillery","homepage":"","size":444,"stargazers_count":156,"watchers_count":156,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":27,"open_issues":13,"watchers":156,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/105"},"html":{"href":"https://github.com/Nordstrom/serverless-artillery/pull/105"},"issue":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/105"},"comments":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/statuses/9fecefe89aeaa76819d0891aaf9631e1d4a3da4f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"erikerikson"}}