{"action":"created","issue":{"url":"https://api.github.com/repos/lanetix/node-lanetix-microservice/issues/13","labels_url":"https://api.github.com/repos/lanetix/node-lanetix-microservice/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/lanetix/node-lanetix-microservice/issues/13/comments","events_url":"https://api.github.com/repos/lanetix/node-lanetix-microservice/issues/13/events","html_url":"https://github.com/lanetix/node-lanetix-microservice/pull/13","id":68967844,"number":13,"title":"lanetix/issues#2172 Actually log errors","user":{"login":"apechimp","id":510459,"avatar_url":"https://avatars.githubusercontent.com/u/510459?v=3","gravatar_id":"","url":"https://api.github.com/users/apechimp","html_url":"https://github.com/apechimp","followers_url":"https://api.github.com/users/apechimp/followers","following_url":"https://api.github.com/users/apechimp/following{/other_user}","gists_url":"https://api.github.com/users/apechimp/gists{/gist_id}","starred_url":"https://api.github.com/users/apechimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apechimp/subscriptions","organizations_url":"https://api.github.com/users/apechimp/orgs","repos_url":"https://api.github.com/users/apechimp/repos","events_url":"https://api.github.com/users/apechimp/events{/privacy}","received_events_url":"https://api.github.com/users/apechimp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-16T17:09:49Z","updated_at":"2015-04-16T17:15:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lanetix/node-lanetix-microservice/pulls/13","html_url":"https://github.com/lanetix/node-lanetix-microservice/pull/13","diff_url":"https://github.com/lanetix/node-lanetix-microservice/pull/13.diff","patch_url":"https://github.com/lanetix/node-lanetix-microservice/pull/13.patch"},"body":"This corrects three issues with the previous error handler implementation.\r\n\r\n1. Actual `Error` objects weren't logged because of the way they get converted to json\r\n2. `JSON.stringify` will fail for some valid objects (e.g. circular references). When logging, you should prefer `util.inspect`.\r\n3. There weren't any tests :stuck_out_tongue: "},"comment":{"url":"https://api.github.com/repos/lanetix/node-lanetix-microservice/issues/comments/93788111","html_url":"https://github.com/lanetix/node-lanetix-microservice/pull/13#issuecomment-93788111","issue_url":"https://api.github.com/repos/lanetix/node-lanetix-microservice/issues/13","id":93788111,"user":{"login":"tone81","id":233491,"avatar_url":"https://avatars.githubusercontent.com/u/233491?v=3","gravatar_id":"","url":"https://api.github.com/users/tone81","html_url":"https://github.com/tone81","followers_url":"https://api.github.com/users/tone81/followers","following_url":"https://api.github.com/users/tone81/following{/other_user}","gists_url":"https://api.github.com/users/tone81/gists{/gist_id}","starred_url":"https://api.github.com/users/tone81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tone81/subscriptions","organizations_url":"https://api.github.com/users/tone81/orgs","repos_url":"https://api.github.com/users/tone81/repos","events_url":"https://api.github.com/users/tone81/events{/privacy}","received_events_url":"https://api.github.com/users/tone81/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T17:15:41Z","updated_at":"2015-04-16T17:15:41Z","body":":mag: "}}