{"action":"opened","issue":{"url":"https://api.github.com/repos/mike-marcacci/node-redlock/issues/8","labels_url":"https://api.github.com/repos/mike-marcacci/node-redlock/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/mike-marcacci/node-redlock/issues/8/comments","events_url":"https://api.github.com/repos/mike-marcacci/node-redlock/issues/8/events","html_url":"https://github.com/mike-marcacci/node-redlock/issues/8","id":105728271,"number":8,"title":"Better/more specific error reporting?","user":{"login":"jraede","id":4572130,"avatar_url":"https://avatars.githubusercontent.com/u/4572130?v=3","gravatar_id":"","url":"https://api.github.com/users/jraede","html_url":"https://github.com/jraede","followers_url":"https://api.github.com/users/jraede/followers","following_url":"https://api.github.com/users/jraede/following{/other_user}","gists_url":"https://api.github.com/users/jraede/gists{/gist_id}","starred_url":"https://api.github.com/users/jraede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraede/subscriptions","organizations_url":"https://api.github.com/users/jraede/orgs","repos_url":"https://api.github.com/users/jraede/repos","events_url":"https://api.github.com/users/jraede/events{/privacy}","received_events_url":"https://api.github.com/users/jraede/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T04:08:09Z","updated_at":"2015-09-10T04:08:09Z","closed_at":null,"body":"I just had an issue in which we had accidentally pointed to a specific node instead of the replica set URL, and the replica set changed the primary, so we started getting `ERROR: READ-ONLY` errors. However the errors we saw from `redlock` were just `Exceeded X attempts to lock...`\r\n\r\nIt would be nice to have a debug mode or some other method of logging for if `err` is not `null` in the `loop` function. I'm happy to submit a PR - what do you think is the best approach?"}}