forked from cadence/breezewiki
		
	Pretty print config in debug mode
This commit is contained in:
		
							parent
							
								
									a5079b5a57
								
							
						
					
					
						commit
						2af32edd8c
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -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)))) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue