aboutsummaryrefslogtreecommitdiff
path: root/llog/llog.go
diff options
context:
space:
mode:
Diffstat (limited to 'llog/llog.go')
-rw-r--r--llog/llog.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/llog/llog.go b/llog/llog.go
index 6f3aff9..1deecc8 100644
--- a/llog/llog.go
+++ b/llog/llog.go
@@ -3,6 +3,7 @@ package llog
import (
"fmt"
"log"
+ "runtime/debug"
)
type LogLevel int
@@ -53,6 +54,7 @@ func Log(l LogLevel, format string, a ...any) {
msg = fmt.Sprintf("[%s] %s", l.String(), msg)
if l == l_Fatal {
+ debug.PrintStack()
log.Fatalln(msg)
} else {
log.Println(msg)