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:
Min RK
2024-04-10 12:56:41 +02:00
parent f9fb650a7b
commit e3ea59759e
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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)