{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/928","repository_url":"https://api.github.com/repos/jupyter/notebook","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/928/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/928/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/928/events","html_url":"https://github.com/jupyter/notebook/issues/928","id":125019832,"number":928,"title":"Update `log.warn` to `log.warning`","user":{"login":"Carreau","id":335567,"avatar_url":"https://avatars.githubusercontent.com/u/335567?v=3","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jupyter/notebook/labels/sprint-friendly","name":"sprint-friendly","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jupyter/notebook/milestones/2","html_url":"https://github.com/jupyter/notebook/milestones/wishlist","labels_url":"https://api.github.com/repos/jupyter/notebook/milestones/2/labels","id":1063965,"number":2,"title":"wishlist","description":null,"creator":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"open_issues":52,"closed_issues":0,"state":"open","created_at":"2015-04-12T18:46:00Z","updated_at":"2016-02-09T13:01:55Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-01-05T18:04:36Z","updated_at":"2016-02-12T22:20:19Z","closed_at":null,"body":"Identical to ipython/ipython#9091\r\n\r\n\r\nAs said in the documentation : [`warn` is a deprecated alias](https://docs.python.org/3/library/logging.html?highlight=logging#logging.Logger.warning), we should try not to use it. \r\n\r\n\r\n`log.warn` seem to be used in the following files:\r\n```\r\n   1 notebook/services/api/handlers.py\r\n   1 notebook/services/security/handlers.py\r\n   1 notebook/services/sessions/handlers.py\r\n   2 notebook/services/contents/handlers.py\r\n   3 notebook/base/handlers.py\r\n   3 notebook/services/contents/filemanager.py\r\n   3 notebook/services/contents/manager.py\r\n   3 notebook/services/kernels/handlers.py\r\n   3 notebook/services/kernels/kernelmanager.py\r\n   3 setupbase.py\r\n   7 notebook/base/zmqhandlers.py\r\n  10 notebook/notebookapp.py\r\n```\r\n\r\nAs in other issue bonus point to add a warnings filter that turn usage of `log.warn` in the package into an error in CI."},"comment":{"url":"https://api.github.com/repos/jupyter/notebook/issues/comments/183509639","html_url":"https://github.com/jupyter/notebook/issues/928#issuecomment-183509639","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/928","id":183509639,"user":{"login":"diego898","id":742407,"avatar_url":"https://avatars.githubusercontent.com/u/742407?v=3","gravatar_id":"","url":"https://api.github.com/users/diego898","html_url":"https://github.com/diego898","followers_url":"https://api.github.com/users/diego898/followers","following_url":"https://api.github.com/users/diego898/following{/other_user}","gists_url":"https://api.github.com/users/diego898/gists{/gist_id}","starred_url":"https://api.github.com/users/diego898/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diego898/subscriptions","organizations_url":"https://api.github.com/users/diego898/orgs","repos_url":"https://api.github.com/users/diego898/repos","events_url":"https://api.github.com/users/diego898/events{/privacy}","received_events_url":"https://api.github.com/users/diego898/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T22:20:18Z","updated_at":"2016-02-12T22:20:18Z","body":"Hello,\r\n\r\nI'd like to try the bonus @Carreau mentioned in ipython/ipython#9091, though he said that it would likely be hard. Any other advice to get started? "}}