chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] spiffy logging


From: felix winkelmann
Subject: Re: [Chicken-users] spiffy logging
Date: Mon, 3 Jul 2006 00:50:48 +0200

On 7/3/06, Daishi Kato <address@hidden> wrote:

Yes. I turn off spiffy-debug-mode, since it gives me too much
logs with remote-timer in ajax.scm.

There is no provision for handling error output. I guess you want the
errors that happen inside your xmlHttpRequest callbacks, so you
should wrap the called back code inside some error-handler, something
like this:

(define (log-error thunk)
 (handle-exceptions ex
   (begin
     (print-error-message ex (current-error-port))
     (signal ex) )
   (thunk) ) )

and then:

... (remote-timer 1 (lambda () (log-error (lambda () ...)))) ...

(a macro might be less verbose)


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]