{"action":"created","issue":{"url":"https://api.github.com/repos/sesser/Instaphp/issues/32","labels_url":"https://api.github.com/repos/sesser/Instaphp/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/sesser/Instaphp/issues/32/comments","events_url":"https://api.github.com/repos/sesser/Instaphp/issues/32/events","html_url":"https://github.com/sesser/Instaphp/pull/32","id":53645257,"number":32,"title":"Improved exceptions","user":{"login":"ollietb","id":342090,"avatar_url":"https://avatars.githubusercontent.com/u/342090?v=3","gravatar_id":"","url":"https://api.github.com/users/ollietb","html_url":"https://github.com/ollietb","followers_url":"https://api.github.com/users/ollietb/followers","following_url":"https://api.github.com/users/ollietb/following{/other_user}","gists_url":"https://api.github.com/users/ollietb/gists{/gist_id}","starred_url":"https://api.github.com/users/ollietb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollietb/subscriptions","organizations_url":"https://api.github.com/users/ollietb/orgs","repos_url":"https://api.github.com/users/ollietb/repos","events_url":"https://api.github.com/users/ollietb/events{/privacy}","received_events_url":"https://api.github.com/users/ollietb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-07T15:41:54Z","updated_at":"2015-01-26T10:42:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sesser/Instaphp/pulls/32","html_url":"https://github.com/sesser/Instaphp/pull/32","diff_url":"https://github.com/sesser/Instaphp/pull/32.diff","patch_url":"https://github.com/sesser/Instaphp/pull/32.patch"},"body":"I found that this library was hard to debug when the requests were malformed, and some exceptions were being caught but not escalated. I've made the exceptions a bit more comprehensive and useful, along with adding the ability to enable the log using the config option `log_enable`.\r\nThere are some slight BC breaks - the User->Authorize() method now throws an exception instead of returning false, which makes for easier debugging. The `log_enable` option now defaults to `false` to avoid saving logs that aren't explicitly intended."},"comment":{"url":"https://api.github.com/repos/sesser/Instaphp/issues/comments/71442442","html_url":"https://github.com/sesser/Instaphp/pull/32#issuecomment-71442442","issue_url":"https://api.github.com/repos/sesser/Instaphp/issues/32","id":71442442,"user":{"login":"ollietb","id":342090,"avatar_url":"https://avatars.githubusercontent.com/u/342090?v=3","gravatar_id":"","url":"https://api.github.com/users/ollietb","html_url":"https://github.com/ollietb","followers_url":"https://api.github.com/users/ollietb/followers","following_url":"https://api.github.com/users/ollietb/following{/other_user}","gists_url":"https://api.github.com/users/ollietb/gists{/gist_id}","starred_url":"https://api.github.com/users/ollietb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollietb/subscriptions","organizations_url":"https://api.github.com/users/ollietb/orgs","repos_url":"https://api.github.com/users/ollietb/repos","events_url":"https://api.github.com/users/ollietb/events{/privacy}","received_events_url":"https://api.github.com/users/ollietb/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T10:42:25Z","updated_at":"2015-01-26T10:42:25Z","body":"@sesser have you had a chance to look at this? It's been running on our production servers for a while now and it seems to be working ok."}}