[Seaside] About error handling
Johan Brichau
johan at inceptive.be
Mon Nov 25 16:19:34 UTC 2019
Isn’t that just `self requestContext request` ?
Johan
> On 25 Nov 2019, at 16:50, Mariano Martinez Peck <marianopeck at gmail.com> wrote:
>
>
>
> On Mon, Nov 25, 2019 at 12:39 PM Sven Van Caekenberghe <sven at stfx.eu <mailto:sven at stfx.eu>> wrote:
> Hi,
>
> I have my own WAHtmlHaltAndErrorHandler subclass that overrides #handleDefault: to log the error in various ways as well as email it. I also include some custom session information for context.
>
> However, I would also like to print all details of the original HTTP request (WARequest) to better map it to upstream requests, but I can't find how to access that. Any ideas ?
>
>
> Hi Sven,
>
> I think I did not understand your question...but...just in case, can't you do a "WACurrentRequestContext value" inside the #ha ndleDefault: and get the WARequest? Then you can print whatever you want...
>
> Best,
>
> --
> Mariano Martinez Peck
> Email: marianopeck at gmail.com <mailto:marianopeck at gmail.com>
> Twitter: @MartinezPeck
> LinkedIn: www.linkedin.com/in/mariano-martinez-peck <https://www.linkedin.com/in/mariano-mart%C3%ADnez-peck/>
> Blog: https://marianopeck.wordpress.com/ <https://marianopeck.wordpress.com/>_______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20191125/5d80a828/attachment-0001.html>
More information about the seaside
mailing list