{"action":"created","issue":{"url":"https://api.github.com/repos/winstonjs/winston/issues/1371","repository_url":"https://api.github.com/repos/winstonjs/winston","labels_url":"https://api.github.com/repos/winstonjs/winston/issues/1371/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston/issues/1371/comments","events_url":"https://api.github.com/repos/winstonjs/winston/issues/1371/events","html_url":"https://github.com/winstonjs/winston/issues/1371","id":334143547,"node_id":"MDU6SXNzdWUzMzQxNDM1NDc=","number":1371,"title":"log() called when format returns falsey","user":{"login":"mattberther","id":49548,"node_id":"MDQ6VXNlcjQ5NTQ4","avatar_url":"https://avatars1.githubusercontent.com/u/49548?v=4","gravatar_id":"","url":"https://api.github.com/users/mattberther","html_url":"https://github.com/mattberther","followers_url":"https://api.github.com/users/mattberther/followers","following_url":"https://api.github.com/users/mattberther/following{/other_user}","gists_url":"https://api.github.com/users/mattberther/gists{/gist_id}","starred_url":"https://api.github.com/users/mattberther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattberther/subscriptions","organizations_url":"https://api.github.com/users/mattberther/orgs","repos_url":"https://api.github.com/users/mattberther/repos","events_url":"https://api.github.com/users/mattberther/events{/privacy}","received_events_url":"https://api.github.com/users/mattberther/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-20T15:56:16Z","updated_at":"2018-06-22T23:32:29Z","closed_at":"2018-06-22T23:32:29Z","author_association":"NONE","body":"### Please tell us about your environment:\r\n  \r\n- _`winston` version?_\r\n   - [ ] `winston@2`\r\n   - [x] `winston@3` \r\n- _`node -v` outputs:_ 8.9.4\r\n- _Operating System?_ ALL\r\n- _Language?_ all\r\n\r\n### What is the problem? \r\nIn the case that a falsey value is returned from the formatter, the `info` passed to `log()` is null. This requires all transports to check whether or not the `info` is null before writing.\r\n\r\n### What do you expect to happen instead?\r\nThe preference would be to not call `log()` on the transports if the formatter returns falsey.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/winstonjs/winston/issues/comments/399609647","html_url":"https://github.com/winstonjs/winston/issues/1371#issuecomment-399609647","issue_url":"https://api.github.com/repos/winstonjs/winston/issues/1371","id":399609647,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTYwOTY0Nw==","user":{"login":"mattberther","id":49548,"node_id":"MDQ6VXNlcjQ5NTQ4","avatar_url":"https://avatars1.githubusercontent.com/u/49548?v=4","gravatar_id":"","url":"https://api.github.com/users/mattberther","html_url":"https://github.com/mattberther","followers_url":"https://api.github.com/users/mattberther/followers","following_url":"https://api.github.com/users/mattberther/following{/other_user}","gists_url":"https://api.github.com/users/mattberther/gists{/gist_id}","starred_url":"https://api.github.com/users/mattberther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattberther/subscriptions","organizations_url":"https://api.github.com/users/mattberther/orgs","repos_url":"https://api.github.com/users/mattberther/repos","events_url":"https://api.github.com/users/mattberther/events{/privacy}","received_events_url":"https://api.github.com/users/mattberther/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T23:32:29Z","updated_at":"2018-06-22T23:32:29Z","author_association":"NONE","body":"Thanks. Yes, it appears to resolve after I updated the `winston-transport` dependency."}}
{"actor":{"display_login":"mattberther"}}