Skip to content

Commit

Permalink
Refs #8560. Added more prints to the log
Browse files Browse the repository at this point in the history
Added more print notices for search start and end.
  • Loading branch information
keithnbrown committed Jan 13, 2014
1 parent 18373c8 commit fb0da72
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -105,6 +105,7 @@ def getxmlway(self, eID, maxDepth):
dom = tree.getroot()
depth = 0
revDom = reversed(dom)
print "Searching Journals for RB number: " + str(eID)
for cycle in revDom:
journal_file = cycle.attrib.get('name')
journal_path = os.path.join(self.base_path, journal_file)
Expand All @@ -125,8 +126,9 @@ def getxmlway(self, eID, maxDepth):
journalentry = runno + ": " + title
runnames.append(journalentry)
depth = depth + 1
if depth == maxDepth:
if depth >= maxDepth:
break
print "Search for RB number " + str(eID) + " complete."
return runnames
def getJournalRuns(self, eID, maxDepth = 1):
if maxDepth < 1:
Expand Down

0 comments on commit fb0da72

Please sign in to comment.