{"action":"created","issue":{"url":"https://api.github.com/repos/apache/couchdb-config/issues/7","labels_url":"https://api.github.com/repos/apache/couchdb-config/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/apache/couchdb-config/issues/7/comments","events_url":"https://api.github.com/repos/apache/couchdb-config/issues/7/events","html_url":"https://github.com/apache/couchdb-config/pull/7","id":114510793,"number":7,"title":"Don't start lager during setup for each config_test","user":{"login":"jaydoane","id":51209,"avatar_url":"https://avatars.githubusercontent.com/u/51209?v=3","gravatar_id":"","url":"https://api.github.com/users/jaydoane","html_url":"https://github.com/jaydoane","followers_url":"https://api.github.com/users/jaydoane/followers","following_url":"https://api.github.com/users/jaydoane/following{/other_user}","gists_url":"https://api.github.com/users/jaydoane/gists{/gist_id}","starred_url":"https://api.github.com/users/jaydoane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaydoane/subscriptions","organizations_url":"https://api.github.com/users/jaydoane/orgs","repos_url":"https://api.github.com/users/jaydoane/repos","events_url":"https://api.github.com/users/jaydoane/events{/privacy}","received_events_url":"https://api.github.com/users/jaydoane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-02T02:14:29Z","updated_at":"2015-11-04T23:19:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/couchdb-config/pulls/7","html_url":"https://github.com/apache/couchdb-config/pull/7","diff_url":"https://github.com/apache/couchdb-config/pull/7.diff","patch_url":"https://github.com/apache/couchdb-config/pull/7.patch"},"body":"BugzID: 55507\r\nCOUCHDB-2866"},"comment":{"url":"https://api.github.com/repos/apache/couchdb-config/issues/comments/153901692","html_url":"https://github.com/apache/couchdb-config/pull/7#issuecomment-153901692","issue_url":"https://api.github.com/repos/apache/couchdb-config/issues/7","id":153901692,"user":{"login":"jaydoane","id":51209,"avatar_url":"https://avatars.githubusercontent.com/u/51209?v=3","gravatar_id":"","url":"https://api.github.com/users/jaydoane","html_url":"https://github.com/jaydoane","followers_url":"https://api.github.com/users/jaydoane/followers","following_url":"https://api.github.com/users/jaydoane/following{/other_user}","gists_url":"https://api.github.com/users/jaydoane/gists{/gist_id}","starred_url":"https://api.github.com/users/jaydoane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaydoane/subscriptions","organizations_url":"https://api.github.com/users/jaydoane/orgs","repos_url":"https://api.github.com/users/jaydoane/repos","events_url":"https://api.github.com/users/jaydoane/events{/privacy}","received_events_url":"https://api.github.com/users/jaydoane/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T23:19:25Z","updated_at":"2015-11-04T23:19:25Z","body":"@kxepal, I've cleaned up the code and added some comments. Please let me know if this is or is not an acceptable solution.\r\n\r\nIf not, another approach could be to factor this code:\r\nhttps://github.com/apache/couchdb-couch-log/blob/master/src/couch_log.erl#L121-L141\r\ninto a utility module, and use it more widely to mock log and stats calls. We could presumably eliminate all dependencies but config, and likely speed up tests, etc."}}