Added additional debug prints

This commit is contained in:
Ubuntu 2020-10-22 03:39:15 +00:00
parent 6663298312
commit eb1c93f9ea
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ class HTTPClient(ClientPlugin):
injected_http = args.get("injected_http_contains")
try:
res = requests.get(url, allow_redirects=False, timeout=3, headers=headers)
logger.debug(res.text)
logger.debug("Response from GET request: %s", str(res.text))
if injected_http:
logger.debug("Checking for '%s' in censor response", injected_http)
# If we need to monitor for an injected response, check that here
if injected_http and injected_http in res.text:
fitness -= 90