mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1068429 - Provide an indication whether a crash was logged by log_crashes.r=ted
This commit is contained in:
parent
1b5fd28f53
commit
1d9b9f7e78
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user