113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
| 113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
-
+
+
+
| (if (debug:debug-mode n)
(with-output-to-port (or e (current-error-port))
(lambda ()
;; (if *logging*
;; (db:log-event (apply conc params))
(apply print params)
(debug:handle-remote-logging params)
)))) ;; )
)))
#t ;; only here to make remote stuff happy. It'd be nice to fix that ...
)
(define (debug:print-error n e . params)
;; normal print
(if (debug:debug-mode n)
(with-output-to-port (if (port? e) e (current-error-port))
(lambda ()
(apply print "ERROR: " params)
|