Bug 1068429 - Provide an indication whether a crash was logged by log_crashes.r=ted

This commit is contained in:
Chris Manchester 2014-09-23 20:33:11 -04:00
parent 1b5fd28f53
commit 1d9b9f7e78

View File

@ -116,11 +116,14 @@ def log_crashes(logger,
stackwalk_binary=None,
dump_save_path=None):
"""Log crashes using a structured logger"""
crash_count = 0
for info in CrashInfo(dump_directory, symbols_path, dump_save_path=dump_save_path,
stackwalk_binary=stackwalk_binary):
crash_count += 1
kwargs = info._asdict()
kwargs.pop("extra")
logger.crash(process=process, test=test, **kwargs)
return crash_count
class CrashInfo(object):