New question #263323 on Sikuli:
https://answers.launchpad.net/sikuli/+question/263323
Most logging functionality can be toggled using
Settings.ActionLogs/DebugLogs/InfoLogs = 0, but is there a similar toggle for
ErrorLogs?
I'm asking specifically because I'd like to suppress [error] logs for the code
snippet below. But I'm also just curious to know if it's possible.
from datetime import datetime
def wait_for_focus(self, window_title, timeout=60):
starttime = datetime.now()
logger.info('Polling for focus on \'{}\...''.format(window_title))
while True:
<<<TURN ALL LOGGING OFF>>>
focus= App.focus(window_title)
<<<TURN IT BACK ON>>>
if focus is not None:
logger.info('\'{}\' found and
focused!'.format(window_title))
break
if (datetime.now() - starttime).seconds > timeout:
raise Exception('Could not focus App %s' %window_title)
sleep(1)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp