{"action":"opened","number":610,"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/610","id":34037381,"html_url":"https://github.com/mongodb/mongo-ruby-driver/pull/610","diff_url":"https://github.com/mongodb/mongo-ruby-driver/pull/610.diff","patch_url":"https://github.com/mongodb/mongo-ruby-driver/pull/610.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/610","number":610,"state":"open","locked":false,"title":"RUBY-897 Print first 250 chars of query selector when logging and rescue inspect error","user":{"login":"estolfo","id":699369,"avatar_url":"https://avatars.githubusercontent.com/u/699369?v=3","gravatar_id":"","url":"https://api.github.com/users/estolfo","html_url":"https://github.com/estolfo","followers_url":"https://api.github.com/users/estolfo/followers","following_url":"https://api.github.com/users/estolfo/following{/other_user}","gists_url":"https://api.github.com/users/estolfo/gists{/gist_id}","starred_url":"https://api.github.com/users/estolfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estolfo/subscriptions","organizations_url":"https://api.github.com/users/estolfo/orgs","repos_url":"https://api.github.com/users/estolfo/repos","events_url":"https://api.github.com/users/estolfo/events{/privacy}","received_events_url":"https://api.github.com/users/estolfo/received_events","type":"User","site_admin":false},"body":"I guessed that 250 characters was a decent limit on the selector field when logging an error with a query but am open to suggestions for that limit to be decreased or increased.\r\n\r\n","created_at":"2015-04-24T10:42:44Z","updated_at":"2015-04-24T10:42:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/610/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/610/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/610/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/statuses/609d75fa7b034d54ee4002ee85a4ce5ce3640696","head":{"label":"estolfo:RUBY-897-log-inspect","ref":"RUBY-897-log-inspect","sha":"609d75fa7b034d54ee4002ee85a4ce5ce3640696","user":{"login":"estolfo","id":699369,"avatar_url":"https://avatars.githubusercontent.com/u/699369?v=3","gravatar_id":"","url":"https://api.github.com/users/estolfo","html_url":"https://github.com/estolfo","followers_url":"https://api.github.com/users/estolfo/followers","following_url":"https://api.github.com/users/estolfo/following{/other_user}","gists_url":"https://api.github.com/users/estolfo/gists{/gist_id}","starred_url":"https://api.github.com/users/estolfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estolfo/subscriptions","organizations_url":"https://api.github.com/users/estolfo/orgs","repos_url":"https://api.github.com/users/estolfo/repos","events_url":"https://api.github.com/users/estolfo/events{/privacy}","received_events_url":"https://api.github.com/users/estolfo/received_events","type":"User","site_admin":false},"repo":{"id":8504548,"name":"mongo-ruby-driver","full_name":"estolfo/mongo-ruby-driver","owner":{"login":"estolfo","id":699369,"avatar_url":"https://avatars.githubusercontent.com/u/699369?v=3","gravatar_id":"","url":"https://api.github.com/users/estolfo","html_url":"https://github.com/estolfo","followers_url":"https://api.github.com/users/estolfo/followers","following_url":"https://api.github.com/users/estolfo/following{/other_user}","gists_url":"https://api.github.com/users/estolfo/gists{/gist_id}","starred_url":"https://api.github.com/users/estolfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estolfo/subscriptions","organizations_url":"https://api.github.com/users/estolfo/orgs","repos_url":"https://api.github.com/users/estolfo/repos","events_url":"https://api.github.com/users/estolfo/events{/privacy}","received_events_url":"https://api.github.com/users/estolfo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/estolfo/mongo-ruby-driver","description":"My fork of the Ruby driver to MongoDB","fork":true,"url":"https://api.github.com/repos/estolfo/mongo-ruby-driver","forks_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/forks","keys_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/teams","hooks_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/hooks","issue_events_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/issues/events{/number}","events_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/events","assignees_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/assignees{/user}","branches_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/branches{/branch}","tags_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/tags","blobs_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/languages","stargazers_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/stargazers","contributors_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/contributors","subscribers_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/subscribers","subscription_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/subscription","commits_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/contents/{+path}","compare_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/merges","archive_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/downloads","issues_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/issues{/number}","pulls_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/labels{/name}","releases_url":"https://api.github.com/repos/estolfo/mongo-ruby-driver/releases{/id}","created_at":"2013-03-01T15:47:27Z","updated_at":"2014-12-26T20:09:59Z","pushed_at":"2015-04-24T10:41:00Z","git_url":"git://github.com/estolfo/mongo-ruby-driver.git","ssh_url":"git@github.com:estolfo/mongo-ruby-driver.git","clone_url":"https://github.com/estolfo/mongo-ruby-driver.git","svn_url":"https://github.com/estolfo/mongo-ruby-driver","homepage":"http://api.mongodb.org/ruby","size":33070,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"2.0-master"}},"base":{"label":"mongodb:master","ref":"master","sha":"dfdf9af9f829129260583b4f4f4c853ad5519933","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":108125,"name":"mongo-ruby-driver","full_name":"mongodb/mongo-ruby-driver","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongo-ruby-driver","description":"Ruby driver for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-ruby-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/releases{/id}","created_at":"2009-01-15T16:40:45Z","updated_at":"2015-04-23T13:11:36Z","pushed_at":"2015-04-23T15:10:27Z","git_url":"git://github.com/mongodb/mongo-ruby-driver.git","ssh_url":"git@github.com:mongodb/mongo-ruby-driver.git","clone_url":"https://github.com/mongodb/mongo-ruby-driver.git","svn_url":"https://github.com/mongodb/mongo-ruby-driver","homepage":"http://api.mongodb.org/ruby","size":38478,"stargazers_count":1140,"watchers_count":1140,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":350,"mirror_url":null,"open_issues_count":4,"forks":350,"open_issues":4,"watchers":1140,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/610"},"html":{"href":"https://github.com/mongodb/mongo-ruby-driver/pull/610"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/610"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/610/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/610/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/610/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/statuses/609d75fa7b034d54ee4002ee85a4ce5ce3640696"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":43,"deletions":1,"changed_files":2}}