panicreport

package
v1.24.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL