Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PanicReportJournalTail = defaultJournalTail
PanicReportJournalTail is the number of lines captured from the end of the lotus journal to be included in the panic report.
View Source
var PanicReportingPath = "panic-reports"
PanicReportingPath is the name of the subdir created within the repoPath path provided to GeneratePanicReport
Functions ¶
func GeneratePanicReport ¶
func GeneratePanicReport(persistPath, repoPath, label string)
GeneratePanicReport produces a timestamped dump of the application state for inspection and debugging purposes. Call this function from any place where a panic or severe error needs to be examined. `persistPath` is the path where the reports should be saved. `repoPath` is the path where the journal should be read from. `label` is an optional string to include next to the report timestamp.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.