{"action":"created","issue":{"url":"https://api.github.com/repos/request/request-debug/issues/9","repository_url":"https://api.github.com/repos/request/request-debug","labels_url":"https://api.github.com/repos/request/request-debug/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/request/request-debug/issues/9/comments","events_url":"https://api.github.com/repos/request/request-debug/issues/9/events","html_url":"https://github.com/request/request-debug/issues/9","id":137247214,"number":9,"title":"Is that possible to debug only one instance of request?","user":{"login":"PavelPolyakov","id":839290,"avatar_url":"https://avatars.githubusercontent.com/u/839290?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelPolyakov","html_url":"https://github.com/PavelPolyakov","followers_url":"https://api.github.com/users/PavelPolyakov/followers","following_url":"https://api.github.com/users/PavelPolyakov/following{/other_user}","gists_url":"https://api.github.com/users/PavelPolyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelPolyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelPolyakov/subscriptions","organizations_url":"https://api.github.com/users/PavelPolyakov/orgs","repos_url":"https://api.github.com/users/PavelPolyakov/repos","events_url":"https://api.github.com/users/PavelPolyakov/events{/privacy}","received_events_url":"https://api.github.com/users/PavelPolyakov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-29T12:59:25Z","updated_at":"2016-03-08T05:56:15Z","closed_at":"2016-03-08T05:56:15Z","body":"Hi,\r\n\r\nImagine I have `requestA` and `requestB`. While I need to debug only one instance.\r\n\r\nHere is the sample code:\r\n```javascript\r\n'use strict';\r\nconst _ = require('lodash');\r\nlet requestA = _.cloneDeep(require('request'));\r\nlet requestB = _.cloneDeep(require('request'));\r\n\r\nrequire('request-debug')(requestA);\r\n\r\nrequestA.get('http://yandex.ru', (error, response, body) => {\r\n    console.log('--- A ---');\r\n    console.log(response.statusCode);\r\n    console.log('--- / A ---')\r\n});\r\nrequestB.get('http://yandex.ru', (error, response, body) => {\r\n    console.log('--- B ---');\r\n    console.log(response.statusCode);\r\n    console.log('--- / B ---')\r\n});\r\n```\r\n\r\nAs you see in console - both request would receive the debug output.\r\n\r\nHow it's possible to configure the debug only for the `requestA` instance?"},"comment":{"url":"https://api.github.com/repos/request/request-debug/issues/comments/193619828","html_url":"https://github.com/request/request-debug/issues/9#issuecomment-193619828","issue_url":"https://api.github.com/repos/request/request-debug/issues/9","id":193619828,"user":{"login":"eiriksm","id":865153,"avatar_url":"https://avatars.githubusercontent.com/u/865153?v=3","gravatar_id":"","url":"https://api.github.com/users/eiriksm","html_url":"https://github.com/eiriksm","followers_url":"https://api.github.com/users/eiriksm/followers","following_url":"https://api.github.com/users/eiriksm/following{/other_user}","gists_url":"https://api.github.com/users/eiriksm/gists{/gist_id}","starred_url":"https://api.github.com/users/eiriksm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eiriksm/subscriptions","organizations_url":"https://api.github.com/users/eiriksm/orgs","repos_url":"https://api.github.com/users/eiriksm/repos","events_url":"https://api.github.com/users/eiriksm/events{/privacy}","received_events_url":"https://api.github.com/users/eiriksm/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T05:56:15Z","updated_at":"2016-03-08T05:56:15Z","body":"Glad I could help! "}}