[hunchentoot-devel] *show-lisp-errors-p* ignored?

Hans Hübner hans.huebner at gmail.com
Mon Jul 23 20:19:43 UTC 2012


Andrei,

you can implement a method for HUNCHENTOOT:ACCEPTOR-STATUS-MESSAGE
(http://weitz.de/hunchentoot/#acceptor-status-message) specialized for
your own acceptor class if the cooked message and the templating
mechanism are insufficient for your needs.

-Hans

On Mon, Jul 23, 2012 at 10:08 PM, Andrei Stebakov <lispercat at gmail.com> wrote:
> Thank you, Hans for the prompt response.
> On the related subject, it used to be *http-error-handler* variable
> that I set to a function where I handled all errors related to my own
> run-time environment, (not hunchentoot related).
> Basically before, I saved the error message in the hunchentoot
> session-value and triggered (error ...) function.
> My handler specified by *http-error-handler* would be called so I
> generated an error page printing the saved message from the
> session-value.
> Now that the *http-error-handler* variable has been deprecated, what
> is the best place I could put my own error page generation code?
>
> Thank you,
> Andrei
>
> On Sat, Jul 14, 2012 at 2:20 AM, Hans Hübner <hans.huebner at gmail.com> wrote:
>> Andrei,
>>
>> the *show-lisp-errors-p* and *show-lisp-backtraces-p* are ignored if
>> the acceptor has been instantiated with an error template directory,
>> which is the default.  You need to use :error-template-directory nil
>> when instantiating the acceptor to use the cooked messaging feature,
>> which looks at these variable settings.
>>
>> http://weitz.de/hunchentoot/#*show-lisp-errors-p*
>>
>> -Hans
>>
>> On Sat, Jul 14, 2012 at 6:24 AM, Andrei Stebakov <lispercat at gmail.com> wrote:
>>> Hi
>>>
>>> I got following variables set before running Hunchentoot
>>>
>>>   (setf hunchentoot:*catch-errors-p* t)
>>>   (setf hunchentoot:*show-lisp-errors-p* nil)
>>>   (setf hunchentoot:*log-lisp-errors-p* t)
>>>   (setf hunchentoot:*show-lisp-backtraces-p* nil)
>>>
>>> For some reason, when an error happens (or when I explicitly call
>>> (error "test")), I still see the whole lisp backtrace printed in the
>>> browser.
>>> How do I fix this? It looks like make-cooked-message isn't called for
>>> every request as well.
>>>
>>> Thank you,
>>> Andrei
>>>
>>> _______________________________________________
>>> tbnl-devel site list
>>> tbnl-devel at common-lisp.net
>>> http://common-lisp.net/mailman/listinfo/tbnl-devel
>>
>> _______________________________________________
>> tbnl-devel site list
>> tbnl-devel at common-lisp.net
>> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel




More information about the Tbnl-devel mailing list