Skip to content

Commit 2211d94

Browse files
committed
Mask the post announce 404 responses.
1 parent 91825c1 commit 2211d94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

instana/agent.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ def full_request_response(self, url, method, o, body, header):
9898
if method == "HEAD":
9999
b = True
100100
except Exception as e:
101-
l.error("%s: full_request_response: %s" % (threading.current_thread().name, str(e)))
101+
# No need to show the initial 404s or timeouts. The agent
102+
# should handle those correctly.
103+
if type(e) is urllib2.HTTPError and e.code != 404:
104+
l.error("%s: full_request_response: %s" % (threading.current_thread().name, str(e)))
102105

103106
return (b, h)
104107

0 commit comments

Comments
 (0)