Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
Introduce tests for handling panic and fatal log scenarios, including recovery from panics and execution of external processes to test fatal behavior. Adjusted logging levels and prefixes to ensure consistency for PANIC logs.
15 lines
227 B
Go
15 lines
227 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"gitstormr.dev/stone-utils/stonelog"
|
|
)
|
|
|
|
func main() {
|
|
if os.Getenv("TEST_FATAL") == "1" {
|
|
stonelog.InitStoneLog(stonelog.TRACE, false, false)
|
|
stonelog.Meltdown("A fatal error occurred")
|
|
}
|
|
}
|