Skip to content

Commit f0bdcbf

Browse files
authored
Merge pull request #4715 from rtfd/reduce-cname-404-logs
Reduce the logging we do on CNAME 404
2 parents 273a636 + ef4cab8 commit f0bdcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/core/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def process_request(self, request):
117117
**log_kwargs))
118118
except: # noqa
119119
# Some crazy person is CNAMEing to us. 404.
120-
log.exception(LOG_TEMPLATE.format(msg='CNAME 404', **log_kwargs))
120+
log.debug(LOG_TEMPLATE.format(msg='CNAME 404', **log_kwargs))
121121
raise Http404(_('Invalid hostname'))
122122
# Google was finding crazy www.blah.readthedocs.org domains.
123123
# Block these explicitly after trying CNAME logic.

0 commit comments

Comments
 (0)