{"action":"created","comment":{"url":"https://api.github.com/repos/meew0/discordcr/pulls/comments/165730725","pull_request_review_id":93721287,"id":165730725,"diff_hunk":"@@ -32,7 +45,12 @@ module Discord\n       @websocket.on_close(&handler)\n     end\n \n-    delegate run, close, send, to: @websocket\n+    delegate run, close, to: @websocket\n+\n+    def send(message)\n+      LOGGER.debug \"[WS OUT] #{message}\"","path":"src/discordcr/websocket.cr","position":35,"original_position":35,"commit_id":"0463b7641a5f6e9891aac636b8f5cf62638ca071","original_commit_id":"0463b7641a5f6e9891aac636b8f5cf62638ca071","user":{"login":"RX14","id":2788811,"avatar_url":"https://avatars0.githubusercontent.com/u/2788811?v=4","gravatar_id":"","url":"https://api.github.com/users/RX14","html_url":"https://github.com/RX14","followers_url":"https://api.github.com/users/RX14/followers","following_url":"https://api.github.com/users/RX14/following{/other_user}","gists_url":"https://api.github.com/users/RX14/gists{/gist_id}","starred_url":"https://api.github.com/users/RX14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RX14/subscriptions","organizations_url":"https://api.github.com/users/RX14/orgs","repos_url":"https://api.github.com/users/RX14/repos","events_url":"https://api.github.com/users/RX14/events{/privacy}","received_events_url":"https://api.github.com/users/RX14/received_events","type":"User","site_admin":false},"body":"ditto","created_at":"2018-02-02T19:02:15Z","updated_at":"2018-02-02T19:02:33Z","html_url":"https://github.com/meew0/discordcr/pull/116#discussion_r165730725","pull_request_url":"https://api.github.com/repos/meew0/discordcr/pulls/116","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/meew0/discordcr/pulls/comments/165730725"},"html":{"href":"https://github.com/meew0/discordcr/pull/116#discussion_r165730725"},"pull_request":{"href":"https://api.github.com/repos/meew0/discordcr/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/meew0/discordcr/pulls/116","id":166694945,"html_url":"https://github.com/meew0/discordcr/pull/116","diff_url":"https://github.com/meew0/discordcr/pull/116.diff","patch_url":"https://github.com/meew0/discordcr/pull/116.patch","issue_url":"https://api.github.com/repos/meew0/discordcr/issues/116","number":116,"state":"open","locked":false,"title":"Additional REST and WebSocket logging","user":{"login":"z64","id":6119032,"avatar_url":"https://avatars0.githubusercontent.com/u/6119032?v=4","gravatar_id":"","url":"https://api.github.com/users/z64","html_url":"https://github.com/z64","followers_url":"https://api.github.com/users/z64/followers","following_url":"https://api.github.com/users/z64/following{/other_user}","gists_url":"https://api.github.com/users/z64/gists{/gist_id}","starred_url":"https://api.github.com/users/z64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z64/subscriptions","organizations_url":"https://api.github.com/users/z64/orgs","repos_url":"https://api.github.com/users/z64/repos","events_url":"https://api.github.com/users/z64/events{/privacy}","received_events_url":"https://api.github.com/users/z64/received_events","type":"User","site_admin":false},"body":"Ref #89, continues #113 \r\n\r\nLogs:\r\n- REST in/out, and rate limiting. Prints in/out bodies on DEBUG severity\r\n- WS in/out\r\n- Client messages identified by shard key\r\n\r\nTodo:\r\n- [ ] Probably token redaction. Unsure of where to place this, though.. suggestions? I imagine we'll have to sub inside of `Logger` but that doesn't sound fun since we don't know what client we're coming from. Will probably have to use some kind of token regex I guess.","created_at":"2018-02-02T01:11:34Z","updated_at":"2018-02-02T19:02:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09c548e3ae6e083fe42ff4559622c6cd39f57b6e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/meew0/discordcr/pulls/116/commits","review_comments_url":"https://api.github.com/repos/meew0/discordcr/pulls/116/comments","review_comment_url":"https://api.github.com/repos/meew0/discordcr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meew0/discordcr/issues/116/comments","statuses_url":"https://api.github.com/repos/meew0/discordcr/statuses/0463b7641a5f6e9891aac636b8f5cf62638ca071","head":{"label":"z64:enhance/logging","ref":"enhance/logging","sha":"0463b7641a5f6e9891aac636b8f5cf62638ca071","user":{"login":"z64","id":6119032,"avatar_url":"https://avatars0.githubusercontent.com/u/6119032?v=4","gravatar_id":"","url":"https://api.github.com/users/z64","html_url":"https://github.com/z64","followers_url":"https://api.github.com/users/z64/followers","following_url":"https://api.github.com/users/z64/following{/other_user}","gists_url":"https://api.github.com/users/z64/gists{/gist_id}","starred_url":"https://api.github.com/users/z64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z64/subscriptions","organizations_url":"https://api.github.com/users/z64/orgs","repos_url":"https://api.github.com/users/z64/repos","events_url":"https://api.github.com/users/z64/events{/privacy}","received_events_url":"https://api.github.com/users/z64/received_events","type":"User","site_admin":false},"repo":{"id":82604279,"name":"discordcr","full_name":"z64/discordcr","owner":{"login":"z64","id":6119032,"avatar_url":"https://avatars0.githubusercontent.com/u/6119032?v=4","gravatar_id":"","url":"https://api.github.com/users/z64","html_url":"https://github.com/z64","followers_url":"https://api.github.com/users/z64/followers","following_url":"https://api.github.com/users/z64/following{/other_user}","gists_url":"https://api.github.com/users/z64/gists{/gist_id}","starred_url":"https://api.github.com/users/z64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z64/subscriptions","organizations_url":"https://api.github.com/users/z64/orgs","repos_url":"https://api.github.com/users/z64/repos","events_url":"https://api.github.com/users/z64/events{/privacy}","received_events_url":"https://api.github.com/users/z64/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/z64/discordcr","description":"Minimalist Discord library for Crystal. (Still WIP, but usable)","fork":true,"url":"https://api.github.com/repos/z64/discordcr","forks_url":"https://api.github.com/repos/z64/discordcr/forks","keys_url":"https://api.github.com/repos/z64/discordcr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/z64/discordcr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/z64/discordcr/teams","hooks_url":"https://api.github.com/repos/z64/discordcr/hooks","issue_events_url":"https://api.github.com/repos/z64/discordcr/issues/events{/number}","events_url":"https://api.github.com/repos/z64/discordcr/events","assignees_url":"https://api.github.com/repos/z64/discordcr/assignees{/user}","branches_url":"https://api.github.com/repos/z64/discordcr/branches{/branch}","tags_url":"https://api.github.com/repos/z64/discordcr/tags","blobs_url":"https://api.github.com/repos/z64/discordcr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/z64/discordcr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/z64/discordcr/git/refs{/sha}","trees_url":"https://api.github.com/repos/z64/discordcr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/z64/discordcr/statuses/{sha}","languages_url":"https://api.github.com/repos/z64/discordcr/languages","stargazers_url":"https://api.github.com/repos/z64/discordcr/stargazers","contributors_url":"https://api.github.com/repos/z64/discordcr/contributors","subscribers_url":"https://api.github.com/repos/z64/discordcr/subscribers","subscription_url":"https://api.github.com/repos/z64/discordcr/subscription","commits_url":"https://api.github.com/repos/z64/discordcr/commits{/sha}","git_commits_url":"https://api.github.com/repos/z64/discordcr/git/commits{/sha}","comments_url":"https://api.github.com/repos/z64/discordcr/comments{/number}","issue_comment_url":"https://api.github.com/repos/z64/discordcr/issues/comments{/number}","contents_url":"https://api.github.com/repos/z64/discordcr/contents/{+path}","compare_url":"https://api.github.com/repos/z64/discordcr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/z64/discordcr/merges","archive_url":"https://api.github.com/repos/z64/discordcr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/z64/discordcr/downloads","issues_url":"https://api.github.com/repos/z64/discordcr/issues{/number}","pulls_url":"https://api.github.com/repos/z64/discordcr/pulls{/number}","milestones_url":"https://api.github.com/repos/z64/discordcr/milestones{/number}","notifications_url":"https://api.github.com/repos/z64/discordcr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/z64/discordcr/labels{/name}","releases_url":"https://api.github.com/repos/z64/discordcr/releases{/id}","deployments_url":"https://api.github.com/repos/z64/discordcr/deployments","created_at":"2017-02-20T21:26:01Z","updated_at":"2017-02-20T21:26:03Z","pushed_at":"2018-02-02T03:48:47Z","git_url":"git://github.com/z64/discordcr.git","ssh_url":"git@github.com:z64/discordcr.git","clone_url":"https://github.com/z64/discordcr.git","svn_url":"https://github.com/z64/discordcr","homepage":"","size":1004,"stargazers_count":0,"watchers_count":0,"language":"Crystal","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"meew0:master","ref":"master","sha":"8f0f47a42e719146ac980c5c8a999ef51aaab38a","user":{"login":"meew0","id":3662915,"avatar_url":"https://avatars0.githubusercontent.com/u/3662915?v=4","gravatar_id":"","url":"https://api.github.com/users/meew0","html_url":"https://github.com/meew0","followers_url":"https://api.github.com/users/meew0/followers","following_url":"https://api.github.com/users/meew0/following{/other_user}","gists_url":"https://api.github.com/users/meew0/gists{/gist_id}","starred_url":"https://api.github.com/users/meew0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meew0/subscriptions","organizations_url":"https://api.github.com/users/meew0/orgs","repos_url":"https://api.github.com/users/meew0/repos","events_url":"https://api.github.com/users/meew0/events{/privacy}","received_events_url":"https://api.github.com/users/meew0/received_events","type":"User","site_admin":false},"repo":{"id":67284615,"name":"discordcr","full_name":"meew0/discordcr","owner":{"login":"meew0","id":3662915,"avatar_url":"https://avatars0.githubusercontent.com/u/3662915?v=4","gravatar_id":"","url":"https://api.github.com/users/meew0","html_url":"https://github.com/meew0","followers_url":"https://api.github.com/users/meew0/followers","following_url":"https://api.github.com/users/meew0/following{/other_user}","gists_url":"https://api.github.com/users/meew0/gists{/gist_id}","starred_url":"https://api.github.com/users/meew0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meew0/subscriptions","organizations_url":"https://api.github.com/users/meew0/orgs","repos_url":"https://api.github.com/users/meew0/repos","events_url":"https://api.github.com/users/meew0/events{/privacy}","received_events_url":"https://api.github.com/users/meew0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meew0/discordcr","description":"Minimalist Discord library for Crystal. (Still WIP, but usable)","fork":false,"url":"https://api.github.com/repos/meew0/discordcr","forks_url":"https://api.github.com/repos/meew0/discordcr/forks","keys_url":"https://api.github.com/repos/meew0/discordcr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meew0/discordcr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meew0/discordcr/teams","hooks_url":"https://api.github.com/repos/meew0/discordcr/hooks","issue_events_url":"https://api.github.com/repos/meew0/discordcr/issues/events{/number}","events_url":"https://api.github.com/repos/meew0/discordcr/events","assignees_url":"https://api.github.com/repos/meew0/discordcr/assignees{/user}","branches_url":"https://api.github.com/repos/meew0/discordcr/branches{/branch}","tags_url":"https://api.github.com/repos/meew0/discordcr/tags","blobs_url":"https://api.github.com/repos/meew0/discordcr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meew0/discordcr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meew0/discordcr/git/refs{/sha}","trees_url":"https://api.github.com/repos/meew0/discordcr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meew0/discordcr/statuses/{sha}","languages_url":"https://api.github.com/repos/meew0/discordcr/languages","stargazers_url":"https://api.github.com/repos/meew0/discordcr/stargazers","contributors_url":"https://api.github.com/repos/meew0/discordcr/contributors","subscribers_url":"https://api.github.com/repos/meew0/discordcr/subscribers","subscription_url":"https://api.github.com/repos/meew0/discordcr/subscription","commits_url":"https://api.github.com/repos/meew0/discordcr/commits{/sha}","git_commits_url":"https://api.github.com/repos/meew0/discordcr/git/commits{/sha}","comments_url":"https://api.github.com/repos/meew0/discordcr/comments{/number}","issue_comment_url":"https://api.github.com/repos/meew0/discordcr/issues/comments{/number}","contents_url":"https://api.github.com/repos/meew0/discordcr/contents/{+path}","compare_url":"https://api.github.com/repos/meew0/discordcr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meew0/discordcr/merges","archive_url":"https://api.github.com/repos/meew0/discordcr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meew0/discordcr/downloads","issues_url":"https://api.github.com/repos/meew0/discordcr/issues{/number}","pulls_url":"https://api.github.com/repos/meew0/discordcr/pulls{/number}","milestones_url":"https://api.github.com/repos/meew0/discordcr/milestones{/number}","notifications_url":"https://api.github.com/repos/meew0/discordcr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meew0/discordcr/labels{/name}","releases_url":"https://api.github.com/repos/meew0/discordcr/releases{/id}","deployments_url":"https://api.github.com/repos/meew0/discordcr/deployments","created_at":"2016-09-03T10:30:24Z","updated_at":"2018-01-29T17:23:03Z","pushed_at":"2018-02-02T09:36:13Z","git_url":"git://github.com/meew0/discordcr.git","ssh_url":"git@github.com:meew0/discordcr.git","clone_url":"https://github.com/meew0/discordcr.git","svn_url":"https://github.com/meew0/discordcr","homepage":"https://discord.gg/puaxPkK","size":1383,"stargazers_count":55,"watchers_count":55,"language":"Crystal","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":20,"open_issues":27,"watchers":55,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meew0/discordcr/pulls/116"},"html":{"href":"https://github.com/meew0/discordcr/pull/116"},"issue":{"href":"https://api.github.com/repos/meew0/discordcr/issues/116"},"comments":{"href":"https://api.github.com/repos/meew0/discordcr/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/meew0/discordcr/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/meew0/discordcr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meew0/discordcr/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/meew0/discordcr/statuses/0463b7641a5f6e9891aac636b8f5cf62638ca071"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"RX14"}}