{"action":"created","issue":{"url":"https://api.github.com/repos/sirupsen/logrus/issues/523","repository_url":"https://api.github.com/repos/sirupsen/logrus","labels_url":"https://api.github.com/repos/sirupsen/logrus/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/sirupsen/logrus/issues/523/comments","events_url":"https://api.github.com/repos/sirupsen/logrus/issues/523/events","html_url":"https://github.com/sirupsen/logrus/issues/523","id":219953597,"number":523,"title":"Debug function doesn't output","user":{"login":"robks","id":23240979,"avatar_url":"https://avatars1.githubusercontent.com/u/23240979?v=4","gravatar_id":"","url":"https://api.github.com/users/robks","html_url":"https://github.com/robks","followers_url":"https://api.github.com/users/robks/followers","following_url":"https://api.github.com/users/robks/following{/other_user}","gists_url":"https://api.github.com/users/robks/gists{/gist_id}","starred_url":"https://api.github.com/users/robks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robks/subscriptions","organizations_url":"https://api.github.com/users/robks/orgs","repos_url":"https://api.github.com/users/robks/repos","events_url":"https://api.github.com/users/robks/events{/privacy}","received_events_url":"https://api.github.com/users/robks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-06T16:19:34Z","updated_at":"2017-09-05T14:46:15Z","closed_at":null,"author_association":"NONE","body":"I'm on release 0.11.5.\r\nlogger.Warn, and logger.Info are working fine.\r\nlogger.Debug  - no output\r\n\r\n```go\r\n        // ...\r\n\tfmt.Println(\"Level is\", level)  // debug\r\n\tfmt.Printf(\"%v\\n\", reflect.TypeOf(logger))  //=>  *logrus.Entry\r\n\tswitch level {\r\n\tcase \"debug\":\r\n\t\tlogger.Debug(msg)   //=> no output\r\n\tcase \"info\":\r\n\t\tlogger.Info(msg)   //=> good\r\n\tcase \"warn\":\r\n\t\tlogger.Warn(msg)  //=> good\r\n        // ...\r\n\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/sirupsen/logrus/issues/comments/327198814","html_url":"https://github.com/sirupsen/logrus/issues/523#issuecomment-327198814","issue_url":"https://api.github.com/repos/sirupsen/logrus/issues/523","id":327198814,"user":{"login":"Patagonicus","id":976250,"avatar_url":"https://avatars1.githubusercontent.com/u/976250?v=4","gravatar_id":"","url":"https://api.github.com/users/Patagonicus","html_url":"https://github.com/Patagonicus","followers_url":"https://api.github.com/users/Patagonicus/followers","following_url":"https://api.github.com/users/Patagonicus/following{/other_user}","gists_url":"https://api.github.com/users/Patagonicus/gists{/gist_id}","starred_url":"https://api.github.com/users/Patagonicus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patagonicus/subscriptions","organizations_url":"https://api.github.com/users/Patagonicus/orgs","repos_url":"https://api.github.com/users/Patagonicus/repos","events_url":"https://api.github.com/users/Patagonicus/events{/privacy}","received_events_url":"https://api.github.com/users/Patagonicus/received_events","type":"User","site_admin":false},"created_at":"2017-09-05T14:46:15Z","updated_at":"2017-09-05T14:46:15Z","author_association":"NONE","body":"Hi!\r\n\r\nI don't think this is a bug, but it's a bit hard to tell without more context. If you don't change it the StandardLogger is set to the InfoLevel, so debug messages are not printed. I have written an example at [Patagonicus/logrus-523](https://github.com/Patagonicus/logrus-523) that shows that behavior. The test method is basically your snippet, but I've also added a method that shows the current level of a logger (the interface EntryLogger doesn't have a method for that, but if it is an Entry or a Logger you can get it from the struct).\r\n\r\nThere's also a line that changes the level to debug so the debug message gets printed. Just uncomment that line and run the example again to see the change.\r\n\r\nHope that helps!\r\n\r\nP.S.: I've tested the behavior with 0.11.5 and the current master."}}
{"actor":{"display_login":"Patagonicus"}}