mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
clarify error template debug log
'No template for 404' looks like something's wrong, when all it means to convey is that it doesn't get _special_ treatment and the default error page is enough.
This commit is contained in:
@@ -1510,7 +1510,7 @@ class BaseHandler(RequestHandler):
|
||||
try:
|
||||
html = self.render_template('%s.html' % status_code, sync=True, **ns)
|
||||
except TemplateNotFound:
|
||||
self.log.debug("No template for %d", status_code)
|
||||
self.log.debug("Using default error template for %d", status_code)
|
||||
try:
|
||||
html = self.render_template('error.html', sync=True, **ns)
|
||||
except Exception:
|
||||
|
@@ -657,7 +657,7 @@ class ProxyErrorHandler(BaseHandler):
|
||||
try:
|
||||
html = await self.render_template('%s.html' % status_code, **ns)
|
||||
except TemplateNotFound:
|
||||
self.log.debug("No template for %d", status_code)
|
||||
self.log.debug("Using default error template for %d", status_code)
|
||||
html = await self.render_template('error.html', **ns)
|
||||
|
||||
self.write(html)
|
||||
|
Reference in New Issue
Block a user