Pretty print config in debug mode

This commit is contained in:
Cadence Ember 2022-08-30 22:13:26 +12:00
parent a5079b5a57
commit 2af32edd8c
Signed by untrusted user: cadence
GPG Key ID: BC1C2C61CF521B17
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
#lang racket/base
(require racket/runtime-path
(require racket/pretty
racket/runtime-path
ini)
(provide
@ -48,4 +49,6 @@
(printf "note: ~a items loaded from config file~n" (length l)))))))
(when (config-true? 'debug)
(printf "config: ~v~n" config))
(parameterize ([pretty-print-columns 80])
(display "config: ")
(pretty-write (hash->list config))))