From 985a78fb442ef379e869f574c8c9bb4b1ff573d3 2014-03-20 21:52:02 From: Brian E. Granger Date: 2014-03-20 21:52:02 Subject: [PATCH] Merge pull request #5389 from minrk/log-files-redirect better log message in deprecated files/ redirect --- diff --git a/IPython/html/notebook/handlers.py b/IPython/html/notebook/handlers.py index fe415e6..5db20cc 100644 --- a/IPython/html/notebook/handlers.py +++ b/IPython/html/notebook/handlers.py @@ -69,8 +69,8 @@ class NotebookRedirectHandler(IPythonHandler): # so it should work until both are cleaned up. parts = path.split('/') files_path = os.path.join(nbm.notebook_dir, *parts) - self.log.warn("filespath: %s", files_path) if not os.path.exists(files_path): + self.log.warn("Deprecated files/ URL: %s", path) path = path.replace('/files/', '/', 1) url = url_path_join(self.base_url, 'files', path)