#30878: django catch request error when deploy nameserver to ip -------------------------------+-------------------------------------- Reporter: liumilan | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 2.2 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------------------------- Description changed by liumilan:
Old description: > When I deploy the nameserver to the IP host, django will catch the error > request from the nameserver. Maybe the nameserver sent a hearbeat to the > IP host. How can I disable this error log from django? > Exception happened during processing of request from ('127.0.0.1', > 51975) > Traceback (most recent call last): > File "/data/home/anaconda3/lib/python3.6/socketserver.py", line > 654, in process_request_thread > self.finish_request(request, client_address) > File "/data/home/anaconda3/lib/python3.6/socketserver.py", line > 364, in finish_request > self.RequestHandlerClass(request, client_address, self) > File "/data/home/anaconda3/lib/python3.6/socketserver.py", line > 724, in __init__ > self.handle() > File "/data/home/anaconda3/lib/python3.6/site- > packages/django/core/servers/basehttp.py", line 169, in handle > self.handle_one_request() > File "/data/home/anaconda3/lib/python3.6/site- > packages/django/core/servers/basehttp.py", line 179, in > handle_one_request > self.raw_requestline = self.rfile.readline(65537) > File "/data/home/anaconda3/lib/python3.6/socket.py", line 586, in > readinto > return self._sock.recv_into(b) > ConnectionResetError: [Errno 104] Connection reset by peer New description: When I deploy the nameserver to the IP host, django will catch the error request from the nameserver. Maybe the nameserver sent a hearbeat to the IP host. How can I disable this error log from django? {{{ Exception happened during processing of request from ('127.0.0.1', 51975) Traceback (most recent call last): File "/data/home/anaconda3/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/data/home/anaconda3/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/data/home/anaconda3/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/data/home/anaconda3/lib/python3.6/site- packages/django/core/servers/basehttp.py", line 169, in handle self.handle_one_request() File "/data/home/anaconda3/lib/python3.6/site- packages/django/core/servers/basehttp.py", line 179, in handle_one_request self.raw_requestline = self.rfile.readline(65537) File "/data/home/anaconda3/lib/python3.6/socket.py", line 586, in readinto return self._sock.recv_into(b) ConnectionResetError: [Errno 104] Connection reset by peer }}} -- -- Ticket URL: <https://code.djangoproject.com/ticket/30878#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.8da166721a4db13e641673d7ce6f789d%40djangoproject.com.