Added a few logging points.
This commit is contained in:
parent
f10b62bfd2
commit
5e023edb00
1 changed files with 3 additions and 0 deletions
|
|
@ -154,10 +154,12 @@ class CapturingTask:
|
|||
attack.attack()
|
||||
|
||||
if attack.success:
|
||||
logging.info("URL attack successful.")
|
||||
self._parse_html(html=attack.get_text())
|
||||
return
|
||||
|
||||
if not attack.success:
|
||||
logging.info("URL attack failed.")
|
||||
try:
|
||||
if self._is_dead_ad(attack.get_text()):
|
||||
self.update_status("Dead ad")
|
||||
|
|
@ -166,6 +168,7 @@ class CapturingTask:
|
|||
logging.error(
|
||||
"Something went wrong when checking if the ad is gone"
|
||||
)
|
||||
logging.error(AttributeError)
|
||||
|
||||
self.update_status("Fail {}".format(self.request_failures))
|
||||
self.request_failures += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue