{"action":"created","issue":{"url":"https://api.github.com/repos/winstonjs/winston/issues/588","labels_url":"https://api.github.com/repos/winstonjs/winston/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston/issues/588/comments","events_url":"https://api.github.com/repos/winstonjs/winston/issues/588/events","html_url":"https://github.com/winstonjs/winston/issues/588","id":64669757,"number":588,"title":"TypeError: Cannot call method 'match' of undefined","user":{"login":"scottcorgan","id":974723,"avatar_url":"https://avatars.githubusercontent.com/u/974723?v=3","gravatar_id":"","url":"https://api.github.com/users/scottcorgan","html_url":"https://github.com/scottcorgan","followers_url":"https://api.github.com/users/scottcorgan/followers","following_url":"https://api.github.com/users/scottcorgan/following{/other_user}","gists_url":"https://api.github.com/users/scottcorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/scottcorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottcorgan/subscriptions","organizations_url":"https://api.github.com/users/scottcorgan/orgs","repos_url":"https://api.github.com/users/scottcorgan/repos","events_url":"https://api.github.com/users/scottcorgan/events{/privacy}","received_events_url":"https://api.github.com/users/scottcorgan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/winstonjs/winston/labels/needs-investigation","name":"needs-investigation","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-27T01:17:33Z","updated_at":"2015-04-21T20:48:20Z","closed_at":"2015-04-21T20:48:20Z","body":"I'm receiving an error that seems to origin in this module while using `winston-papertrail`. Any thoughts on why this happens?\r\n\r\nhttps://github.com/winstonjs/winston/blob/v0.9.0/lib/winston/config.js#L26\r\n\r\n```\r\n/var/app/current/node_modules/divshot-logger/node_modules/winston/lib/winston/config.js:26\r\n  } else if (allColors[level].match(/\\s/)) {\r\n                              ^\r\nTypeError: Cannot call method 'match' of undefined\r\n    at Object.config.colorize (/var/app/current/node_modules/divshot-logger/node_modules/winston/lib/winston/config.js:26:31)\r\n    at Papertrail.sendMessage (/var/app/current/node_modules/divshot-logger/node_modules/winston-papertrail/lib/winston-papertrail.js:347:68)\r\n    at Papertrail.log (/var/app/current/node_modules/divshot-logger/node_modules/winston-papertrail/lib/winston-papertrail.js:299:10)\r\n    at Transport.logException (/var/app/current/node_modules/divshot-logger/node_modules/winston/lib/winston/transports/transport.js:124:8)\r\n    at logAndWait (/var/app/current/node_modules/divshot-logger/node_modules/winston/lib/winston/logger.js:631:15)\r\n    at /var/app/current/node_modules/async/lib/async.js:125:13\r\n    at Array.forEach (native)\r\n    at _each (/var/app/current/node_modules/async/lib/async.js:46:24)\r\n    at Object.async.each (/var/app/current/node_modules/async/lib/async.js:124:9)\r\n    at Logger._uncaughtException (/var/app/current/node_modules/divshot-logger/node_modules/winston/lib/winston/logger.js:654:9)\r\n```\r\n\r\nThis relates to an issue I opened on the `winston-papertrail` repo: https://github.com/kenperkins/winston-papertrail/issues/38"},"comment":{"url":"https://api.github.com/repos/winstonjs/winston/issues/comments/94936161","html_url":"https://github.com/winstonjs/winston/issues/588#issuecomment-94936161","issue_url":"https://api.github.com/repos/winstonjs/winston/issues/588","id":94936161,"user":{"login":"scottcorgan","id":974723,"avatar_url":"https://avatars.githubusercontent.com/u/974723?v=3","gravatar_id":"","url":"https://api.github.com/users/scottcorgan","html_url":"https://github.com/scottcorgan","followers_url":"https://api.github.com/users/scottcorgan/followers","following_url":"https://api.github.com/users/scottcorgan/following{/other_user}","gists_url":"https://api.github.com/users/scottcorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/scottcorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottcorgan/subscriptions","organizations_url":"https://api.github.com/users/scottcorgan/orgs","repos_url":"https://api.github.com/users/scottcorgan/repos","events_url":"https://api.github.com/users/scottcorgan/events{/privacy}","received_events_url":"https://api.github.com/users/scottcorgan/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T20:48:20Z","updated_at":"2015-04-21T20:48:20Z","body":"I'll go ahead and close until I can figure out how reproduce. Once it pops up again, I'll post how to recreate."}}