mirror of
https://gitdab.com/cadence/breezewiki.git
synced 2026-04-19 22:04:35 -04:00
Pretty print config in debug mode
This commit is contained in:
+5
-2
@@ -1,5 +1,6 @@
|
|||||||
#lang racket/base
|
#lang racket/base
|
||||||
(require racket/runtime-path
|
(require racket/pretty
|
||||||
|
racket/runtime-path
|
||||||
ini)
|
ini)
|
||||||
|
|
||||||
(provide
|
(provide
|
||||||
@@ -48,4 +49,6 @@
|
|||||||
(printf "note: ~a items loaded from config file~n" (length l)))))))
|
(printf "note: ~a items loaded from config file~n" (length l)))))))
|
||||||
|
|
||||||
(when (config-true? 'debug)
|
(when (config-true? 'debug)
|
||||||
(printf "config: ~v~n" config))
|
(parameterize ([pretty-print-columns 80])
|
||||||
|
(display "config: ")
|
||||||
|
(pretty-write (hash->list config))))
|
||||||
|
|||||||
Reference in New Issue
Block a user