Skip to content

Commit

Permalink
Promote the verbosity of the existence checks
Browse files Browse the repository at this point in the history
This considerably improves debugging and puts the existence checks
on equal footing with the rest of the main API methods.
  • Loading branch information
pevogam committed May 18, 2023
1 parent 7085fda commit fb3c26c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guibot/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,11 @@ def exists(self, target, timeout=0):
or nothing if no match is found
:rtype: :py:class:`match.Match` or None
"""
log.debug("Checking if %s is present", target)
log.info("Checking if %s is present", target)
try:
return self.find(target, timeout)
except FindError:
pass
log.info("%s is not present", target)
return None

def wait(self, target, timeout=30):
Expand Down

0 comments on commit fb3c26c

Please sign in to comment.