Opened 4 years ago

Closed 4 years ago

#4686 closed enhancement (fixed)

Include logged commands in crash reports

Reported by: Tom Goddard Owned by: Tom Goddard
Priority: moderate Milestone:
Component: Logging Version:
Keywords: Cc: pett
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

I would be useful for crash bug reports to have the commands the user executed so we know what led up to the crash. A way to do that would be to write each command to a temporary file for the session. If at the next start a crash is detected, look for the log of commands from the last session and include it. Probably need to call flush() after each written command to make sure it gets written when ChimeraX crashes. I don't think this will impair performance at all because the one line of text will simply be written to the in-memory operating system file cache.

Change History (2)

comment:1 by pett, 4 years ago

Performance could be impacted by anti-virus software checking updated files.

comment:2 by Tom Goddard, 4 years ago

Resolution: fixed
Status: assignedclosed

Done.

Recorded log messages to a temporary file so that after crash they can be included in a bug report.

Note: See TracTickets for help on using tickets.