Skip to content

Commit 9bc281b

Browse files
committed
CORE: more more details in exception logs
1 parent f1bd029 commit 9bc281b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

modules/ln_core/log.scm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,13 @@ end-of-c-declare
137137
(continuation-capture
138138
(lambda (cont)
139139
(display-exception-in-context e cont port)
140-
(display-continuation-backtrace cont port))))))
140+
(let ((all-frames #t) ;; gambit default: #f
141+
(display-env #t) ;; gambit default: #f
142+
(max-head 10) ;; gambit default: 10
143+
(max-tail 4) ;; gambit default: 4
144+
(offset -2) ;; gambit default: 0 -- nesting level of this expression
145+
)
146+
(display-continuation-backtrace cont port all-frames display-env max-head max-tail offset)))))))
141147
(log-error "HALT pid " ((c-lambda () int "getpid")))
142148
(exit 70))
143149

0 commit comments

Comments
 (0)