diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2014-11-21 14:40:03 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2014-11-21 14:40:30 -0800 |
commit | e39b41c3c2bb7fc175a6aa931041b5bcb4a6656d (patch) | |
tree | 9aa9284db52d09d79b0e4fc4b0d564bd43f0b73c | |
parent | e9e28f5c00fdebd255ae732aaaa4faa56f2c349a (diff) | |
download | mu-e39b41c3c2bb7fc175a6aa931041b5bcb4a6656d.tar.gz |
278
-rw-r--r-- | mu.arc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mu.arc b/mu.arc index 77370b7e..89764590 100644 --- a/mu.arc +++ b/mu.arc @@ -91,12 +91,17 @@ (= dump-trace* nil) (def trace (label . args) (when (or (is dump-trace* t) + (and dump-trace* (is label "-")) (and dump-trace* (pos label dump-trace*!whitelist)) (and dump-trace* (no dump-trace*!whitelist) (~pos label dump-trace*!blacklist))) (apply prn label ": " args)) (enq (list label (apply tostring:prn args)) traces*)) +(redef tr args ; why am I still returning to prn when debugging? Will this help? + (do1 nil + (apply trace "-" args))) + (def check-trace-contents (msg expected-contents) (unless (trace-contents-match expected-contents) (prn "F - " msg) |