Private GIT

Skip to content
Snippets Groups Projects
Commit 2fa4af5c authored by Nic Wolfe's avatar Nic Wolfe
Browse files

A little bit of refactoring the logging for the search code

parent fd5aa898
Branches
Tags
No related merge requests found
......@@ -227,7 +227,7 @@ def isFinalResult(result):
"""
logger.log(u"Checking if we should keep searching after we've found "+result.name)
logger.log(u"Checking if we should keep searching after we've found "+result.name, logger.DEBUG)
show_obj = result.episodes[0].show
......@@ -286,9 +286,9 @@ def findEpisode(episode, manualSearch=False):
# loop all results and see if any of them are good enough that we can stop searching
done_searching = False
for x in curFoundResults:
done_searching = isFinalResult(x)
logger.log(u"Should we stop searching: "+str(done_searching), logger.DEBUG)
for cur_result in curFoundResults:
done_searching = isFinalResult(cur_result)
logger.log(u"Should we stop searching after finding "+cur_result.name+": "+str(done_searching), logger.DEBUG)
if done_searching:
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment