Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/stats/bin/logprocessor.py

Issue 5315116274810880: Issue 1811 - logprocessor crashes if unable to process one log file (Closed)
Patch Set: Created Jan. 14, 2015, 11:06 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/stats/bin/logprocessor.py
===================================================================
--- a/sitescripts/stats/bin/logprocessor.py
+++ b/sitescripts/stats/bin/logprocessor.py
@@ -518,17 +518,17 @@ def parse_source(factor, lock, (mirror_n
try:
save_stats(server_type, data, factor)
finally:
lock.release()
return log_file, ignored
except:
print >>sys.stderr, "Unable to process log file '%s'" % log_file
traceback.print_exc()
- return None, None, None, None
+ return None, None
def parse_sources(sources, factor=1, verbose=False):
pool = multiprocessing.Pool()
lock = multiprocessing.Manager().Lock()
callback = functools.partial(parse_source, factor, lock)
try:
for log_file, ignored in pool.imap_unordered(callback, sources, chunksize=1):
if verbose and ignored:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld