[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] spiffy logging
From: |
Daishi Kato |
Subject: |
Re: [Chicken-users] spiffy logging |
Date: |
Mon, 03 Jul 2006 08:45:42 +0900 |
User-agent: |
Wanderlust/2.15.3 (Almost Unreal) Emacs/21.4 Mule/5.0 (SAKAKI) |
Hm. This works for the half of my problem. Thanks.
The other half is in the case the ssp is wrong (like unbound varible),
and 404 not found logging.
Isn't it possible to filter the normal debug log?
Daishi
At Mon, 3 Jul 2006 00:50:48 +0200,
felix winkelmann wrote:
>
> 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