{"action":"created","comment":{"url":"https://api.github.com/repos/taskrabbit/makara/pulls/comments/27495931","id":27495931,"diff_hunk":"@@ -2,12 +2,17 @@ module Makara\n   module Logging\n \n     module Subscriber\n+      IGNORE_PAYLOAD_NAMES = [\"SCHEMA\", \"EXPLAIN\"]\n \n       def sql(event)\n         name = event.payload[:name]\n-        name = [current_wrapper_name(event), name].compact.join(' ')\n-        event.payload[:name] = name\n-        super(event)\n+        if IGNORE_PAYLOAD_NAMES.include?(name)\n+          self.class.runtime += event.duration","path":"lib/makara/logging/subscriber.rb","position":12,"original_position":12,"commit_id":"5267eb596416067b7577bc979714eb7d5ef1ad2e","original_commit_id":"5267eb596416067b7577bc979714eb7d5ef1ad2e","user":{"login":"ankane","id":220358,"avatar_url":"https://avatars.githubusercontent.com/u/220358?v=3","gravatar_id":"","url":"https://api.github.com/users/ankane","html_url":"https://github.com/ankane","followers_url":"https://api.github.com/users/ankane/followers","following_url":"https://api.github.com/users/ankane/following{/other_user}","gists_url":"https://api.github.com/users/ankane/gists{/gist_id}","starred_url":"https://api.github.com/users/ankane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankane/subscriptions","organizations_url":"https://api.github.com/users/ankane/orgs","repos_url":"https://api.github.com/users/ankane/repos","events_url":"https://api.github.com/users/ankane/events{/privacy}","received_events_url":"https://api.github.com/users/ankane/received_events","type":"User","site_admin":false},"body":"Good call.","created_at":"2015-03-31T16:27:30Z","updated_at":"2015-03-31T16:27:30Z","html_url":"https://github.com/taskrabbit/makara/pull/76#discussion_r27495931","pull_request_url":"https://api.github.com/repos/taskrabbit/makara/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/taskrabbit/makara/pulls/comments/27495931"},"html":{"href":"https://github.com/taskrabbit/makara/pull/76#discussion_r27495931"},"pull_request":{"href":"https://api.github.com/repos/taskrabbit/makara/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/taskrabbit/makara/pulls/76","id":32303645,"html_url":"https://github.com/taskrabbit/makara/pull/76","diff_url":"https://github.com/taskrabbit/makara/pull/76.diff","patch_url":"https://github.com/taskrabbit/makara/pull/76.patch","issue_url":"https://api.github.com/repos/taskrabbit/makara/issues/76","number":76,"state":"open","locked":false,"title":"Use same logging rules as ActiveRecord","user":{"login":"ankane","id":220358,"avatar_url":"https://avatars.githubusercontent.com/u/220358?v=3","gravatar_id":"","url":"https://api.github.com/users/ankane","html_url":"https://github.com/ankane","followers_url":"https://api.github.com/users/ankane/followers","following_url":"https://api.github.com/users/ankane/following{/other_user}","gists_url":"https://api.github.com/users/ankane/gists{/gist_id}","starred_url":"https://api.github.com/users/ankane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankane/subscriptions","organizations_url":"https://api.github.com/users/ankane/orgs","repos_url":"https://api.github.com/users/ankane/repos","events_url":"https://api.github.com/users/ankane/events{/privacy}","received_events_url":"https://api.github.com/users/ankane/received_events","type":"User","site_admin":false},"body":"Hey, thanks for this awesome gem :+1:\r\n\r\nThis commit reduces logging noise by using [the same rules as ActiveRecord uses](https://github.com/rails/rails/blob/b06f64c3480cd389d14618540d62da4978918af0/activerecord/lib/active_record/log_subscriber.rb#L33).","created_at":"2015-03-31T09:14:20Z","updated_at":"2015-03-31T16:27:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec0a67c8f730b94d50acdb52e464445147df6882","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/taskrabbit/makara/pulls/76/commits","review_comments_url":"https://api.github.com/repos/taskrabbit/makara/pulls/76/comments","review_comment_url":"https://api.github.com/repos/taskrabbit/makara/pulls/comments{/number}","comments_url":"https://api.github.com/repos/taskrabbit/makara/issues/76/comments","statuses_url":"https://api.github.com/repos/taskrabbit/makara/statuses/5267eb596416067b7577bc979714eb7d5ef1ad2e","head":{"label":"instacart:logging","ref":"logging","sha":"5267eb596416067b7577bc979714eb7d5ef1ad2e","user":{"login":"instacart","id":3732412,"avatar_url":"https://avatars.githubusercontent.com/u/3732412?v=3","gravatar_id":"","url":"https://api.github.com/users/instacart","html_url":"https://github.com/instacart","followers_url":"https://api.github.com/users/instacart/followers","following_url":"https://api.github.com/users/instacart/following{/other_user}","gists_url":"https://api.github.com/users/instacart/gists{/gist_id}","starred_url":"https://api.github.com/users/instacart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instacart/subscriptions","organizations_url":"https://api.github.com/users/instacart/orgs","repos_url":"https://api.github.com/users/instacart/repos","events_url":"https://api.github.com/users/instacart/events{/privacy}","received_events_url":"https://api.github.com/users/instacart/received_events","type":"Organization","site_admin":false},"repo":{"id":32517497,"name":"makara","full_name":"instacart/makara","owner":{"login":"instacart","id":3732412,"avatar_url":"https://avatars.githubusercontent.com/u/3732412?v=3","gravatar_id":"","url":"https://api.github.com/users/instacart","html_url":"https://github.com/instacart","followers_url":"https://api.github.com/users/instacart/followers","following_url":"https://api.github.com/users/instacart/following{/other_user}","gists_url":"https://api.github.com/users/instacart/gists{/gist_id}","starred_url":"https://api.github.com/users/instacart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instacart/subscriptions","organizations_url":"https://api.github.com/users/instacart/orgs","repos_url":"https://api.github.com/users/instacart/repos","events_url":"https://api.github.com/users/instacart/events{/privacy}","received_events_url":"https://api.github.com/users/instacart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/instacart/makara","description":"A Read-Write Proxy for Connections; Also provides an ActiveRecord adapter.","fork":true,"url":"https://api.github.com/repos/instacart/makara","forks_url":"https://api.github.com/repos/instacart/makara/forks","keys_url":"https://api.github.com/repos/instacart/makara/keys{/key_id}","collaborators_url":"https://api.github.com/repos/instacart/makara/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/instacart/makara/teams","hooks_url":"https://api.github.com/repos/instacart/makara/hooks","issue_events_url":"https://api.github.com/repos/instacart/makara/issues/events{/number}","events_url":"https://api.github.com/repos/instacart/makara/events","assignees_url":"https://api.github.com/repos/instacart/makara/assignees{/user}","branches_url":"https://api.github.com/repos/instacart/makara/branches{/branch}","tags_url":"https://api.github.com/repos/instacart/makara/tags","blobs_url":"https://api.github.com/repos/instacart/makara/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/instacart/makara/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/instacart/makara/git/refs{/sha}","trees_url":"https://api.github.com/repos/instacart/makara/git/trees{/sha}","statuses_url":"https://api.github.com/repos/instacart/makara/statuses/{sha}","languages_url":"https://api.github.com/repos/instacart/makara/languages","stargazers_url":"https://api.github.com/repos/instacart/makara/stargazers","contributors_url":"https://api.github.com/repos/instacart/makara/contributors","subscribers_url":"https://api.github.com/repos/instacart/makara/subscribers","subscription_url":"https://api.github.com/repos/instacart/makara/subscription","commits_url":"https://api.github.com/repos/instacart/makara/commits{/sha}","git_commits_url":"https://api.github.com/repos/instacart/makara/git/commits{/sha}","comments_url":"https://api.github.com/repos/instacart/makara/comments{/number}","issue_comment_url":"https://api.github.com/repos/instacart/makara/issues/comments{/number}","contents_url":"https://api.github.com/repos/instacart/makara/contents/{+path}","compare_url":"https://api.github.com/repos/instacart/makara/compare/{base}...{head}","merges_url":"https://api.github.com/repos/instacart/makara/merges","archive_url":"https://api.github.com/repos/instacart/makara/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/instacart/makara/downloads","issues_url":"https://api.github.com/repos/instacart/makara/issues{/number}","pulls_url":"https://api.github.com/repos/instacart/makara/pulls{/number}","milestones_url":"https://api.github.com/repos/instacart/makara/milestones{/number}","notifications_url":"https://api.github.com/repos/instacart/makara/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/instacart/makara/labels{/name}","releases_url":"https://api.github.com/repos/instacart/makara/releases{/id}","created_at":"2015-03-19T11:29:21Z","updated_at":"2015-03-31T10:24:19Z","pushed_at":"2015-03-31T10:24:19Z","git_url":"git://github.com/instacart/makara.git","ssh_url":"git@github.com:instacart/makara.git","clone_url":"https://github.com/instacart/makara.git","svn_url":"https://github.com/instacart/makara","homepage":"http://tech.taskrabbit.com/","size":479,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"taskrabbit:master","ref":"master","sha":"9dda370eb7784304085f87aa8680c93b3fdfbfa3","user":{"login":"taskrabbit","id":666590,"avatar_url":"https://avatars.githubusercontent.com/u/666590?v=3","gravatar_id":"","url":"https://api.github.com/users/taskrabbit","html_url":"https://github.com/taskrabbit","followers_url":"https://api.github.com/users/taskrabbit/followers","following_url":"https://api.github.com/users/taskrabbit/following{/other_user}","gists_url":"https://api.github.com/users/taskrabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/taskrabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskrabbit/subscriptions","organizations_url":"https://api.github.com/users/taskrabbit/orgs","repos_url":"https://api.github.com/users/taskrabbit/repos","events_url":"https://api.github.com/users/taskrabbit/events{/privacy}","received_events_url":"https://api.github.com/users/taskrabbit/received_events","type":"Organization","site_admin":false},"repo":{"id":5708822,"name":"makara","full_name":"taskrabbit/makara","owner":{"login":"taskrabbit","id":666590,"avatar_url":"https://avatars.githubusercontent.com/u/666590?v=3","gravatar_id":"","url":"https://api.github.com/users/taskrabbit","html_url":"https://github.com/taskrabbit","followers_url":"https://api.github.com/users/taskrabbit/followers","following_url":"https://api.github.com/users/taskrabbit/following{/other_user}","gists_url":"https://api.github.com/users/taskrabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/taskrabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskrabbit/subscriptions","organizations_url":"https://api.github.com/users/taskrabbit/orgs","repos_url":"https://api.github.com/users/taskrabbit/repos","events_url":"https://api.github.com/users/taskrabbit/events{/privacy}","received_events_url":"https://api.github.com/users/taskrabbit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/taskrabbit/makara","description":"A Read-Write Proxy for Connections; Also provides an ActiveRecord adapter.","fork":false,"url":"https://api.github.com/repos/taskrabbit/makara","forks_url":"https://api.github.com/repos/taskrabbit/makara/forks","keys_url":"https://api.github.com/repos/taskrabbit/makara/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taskrabbit/makara/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taskrabbit/makara/teams","hooks_url":"https://api.github.com/repos/taskrabbit/makara/hooks","issue_events_url":"https://api.github.com/repos/taskrabbit/makara/issues/events{/number}","events_url":"https://api.github.com/repos/taskrabbit/makara/events","assignees_url":"https://api.github.com/repos/taskrabbit/makara/assignees{/user}","branches_url":"https://api.github.com/repos/taskrabbit/makara/branches{/branch}","tags_url":"https://api.github.com/repos/taskrabbit/makara/tags","blobs_url":"https://api.github.com/repos/taskrabbit/makara/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taskrabbit/makara/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taskrabbit/makara/git/refs{/sha}","trees_url":"https://api.github.com/repos/taskrabbit/makara/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taskrabbit/makara/statuses/{sha}","languages_url":"https://api.github.com/repos/taskrabbit/makara/languages","stargazers_url":"https://api.github.com/repos/taskrabbit/makara/stargazers","contributors_url":"https://api.github.com/repos/taskrabbit/makara/contributors","subscribers_url":"https://api.github.com/repos/taskrabbit/makara/subscribers","subscription_url":"https://api.github.com/repos/taskrabbit/makara/subscription","commits_url":"https://api.github.com/repos/taskrabbit/makara/commits{/sha}","git_commits_url":"https://api.github.com/repos/taskrabbit/makara/git/commits{/sha}","comments_url":"https://api.github.com/repos/taskrabbit/makara/comments{/number}","issue_comment_url":"https://api.github.com/repos/taskrabbit/makara/issues/comments{/number}","contents_url":"https://api.github.com/repos/taskrabbit/makara/contents/{+path}","compare_url":"https://api.github.com/repos/taskrabbit/makara/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taskrabbit/makara/merges","archive_url":"https://api.github.com/repos/taskrabbit/makara/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taskrabbit/makara/downloads","issues_url":"https://api.github.com/repos/taskrabbit/makara/issues{/number}","pulls_url":"https://api.github.com/repos/taskrabbit/makara/pulls{/number}","milestones_url":"https://api.github.com/repos/taskrabbit/makara/milestones{/number}","notifications_url":"https://api.github.com/repos/taskrabbit/makara/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taskrabbit/makara/labels{/name}","releases_url":"https://api.github.com/repos/taskrabbit/makara/releases{/id}","created_at":"2012-09-06T21:33:08Z","updated_at":"2015-03-31T01:00:27Z","pushed_at":"2015-03-31T09:14:21Z","git_url":"git://github.com/taskrabbit/makara.git","ssh_url":"git@github.com:taskrabbit/makara.git","clone_url":"https://github.com/taskrabbit/makara.git","svn_url":"https://github.com/taskrabbit/makara","homepage":"http://tech.taskrabbit.com/","size":1330,"stargazers_count":203,"watchers_count":203,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":6,"forks":48,"open_issues":6,"watchers":203,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/taskrabbit/makara/pulls/76"},"html":{"href":"https://github.com/taskrabbit/makara/pull/76"},"issue":{"href":"https://api.github.com/repos/taskrabbit/makara/issues/76"},"comments":{"href":"https://api.github.com/repos/taskrabbit/makara/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/taskrabbit/makara/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/taskrabbit/makara/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/taskrabbit/makara/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/taskrabbit/makara/statuses/5267eb596416067b7577bc979714eb7d5ef1ad2e"}}}}