{"action":"opened","issue":{"url":"https://api.github.com/repos/s-a/iron-node/issues/52","labels_url":"https://api.github.com/repos/s-a/iron-node/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/s-a/iron-node/issues/52/comments","events_url":"https://api.github.com/repos/s-a/iron-node/issues/52/events","html_url":"https://github.com/s-a/iron-node/issues/52","id":105016925,"number":52,"title":"debug not working","user":{"login":"jonaswindey","id":3637300,"avatar_url":"https://avatars.githubusercontent.com/u/3637300?v=3","gravatar_id":"","url":"https://api.github.com/users/jonaswindey","html_url":"https://github.com/jonaswindey","followers_url":"https://api.github.com/users/jonaswindey/followers","following_url":"https://api.github.com/users/jonaswindey/following{/other_user}","gists_url":"https://api.github.com/users/jonaswindey/gists{/gist_id}","starred_url":"https://api.github.com/users/jonaswindey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonaswindey/subscriptions","organizations_url":"https://api.github.com/users/jonaswindey/orgs","repos_url":"https://api.github.com/users/jonaswindey/repos","events_url":"https://api.github.com/users/jonaswindey/events{/privacy}","received_events_url":"https://api.github.com/users/jonaswindey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-05T09:33:20Z","updated_at":"2015-09-05T09:33:20Z","closed_at":null,"body":"I'm using the https://github.com/visionmedia/debug library and I can't seem to get any logs in my console.\r\n\r\nNote: I'm using babel/register to transpile my es6/7 code to es5\r\n\r\napp.js:\r\n\r\n```\r\nprocess.env.DEBUG = 'init,db';\r\n\r\nrequire('babel/register')({stage: 0}); // compile ES6/ES7 to ES5\r\nrequire('./apps/api');\r\n```\r\napps/api.js:\r\n```\r\nimport debug from 'debug';\r\n\r\nclass Api {\r\n  constructor() {\r\n    console.log('test') // this is called\r\n    debug('init')('starting API'); // this isn't\r\n  }\r\n}\r\n\r\nexport default new Api();\r\n```\r\n"}}