Welcome! Log In Create A New Profile

Advanced

[Patch] Lua / Increase error verbosity

Posted by Thierry Fournier 
Thierry Fournier
[Patch] Lua / Increase error verbosity
June 08, 2018 01:20PM
Hi,

runtime errors doesn’t provides the error line, in particular the memory error (out of memory)

Please find a Lua patch in attachment.
It provides backtrace condensed in one line.

Thierry
Attachments:
open | download - 0001-MINOR-lua-Increase-debug-information.patch (3.6 KB)
Willy Tarreau
Re: [Patch] Lua / Increase error verbosity
June 08, 2018 06:30PM
On Fri, Jun 08, 2018 at 01:09:04PM +0200, Thierry Fournier wrote:
> Hi,
>
> runtime errors doesn't provides the error line, in particular the memory error (out of memory)
>
> Please find a Lua patch in attachment.
> It provides backtrace condensed in one line.

Indeed it's much better. Given that it doesn't change any feature and
only increases verbosity in case of problem, do you want it to be
backported to 1.8 as well ?

Thanks!
Willy
Thierry Fournier
Re: [Patch] Lua / Increase error verbosity
June 08, 2018 06:40PM
> On 8 Jun 2018, at 18:21, Willy Tarreau <[email protected]> wrote:
>
> On Fri, Jun 08, 2018 at 01:09:04PM +0200, Thierry Fournier wrote:
>> Hi,
>>
>> runtime errors doesn't provides the error line, in particular the memory error (out of memory)
>>
>> Please find a Lua patch in attachment.
>> It provides backtrace condensed in one line.
>
> Indeed it's much better. Given that it doesn't change any feature and
> only increases verbosity in case of problem, do you want it to be
> backported to 1.8 as well ?


It should great !

Thierry
William Lallemand
Re: [Patch] Lua / Increase error verbosity
June 11, 2018 11:20AM
On Fri, Jun 08, 2018 at 06:28:10PM +0200, Thierry Fournier wrote:
>
>
> > On 8 Jun 2018, at 18:21, Willy Tarreau <[email protected]> wrote:
> >
> > On Fri, Jun 08, 2018 at 01:09:04PM +0200, Thierry Fournier wrote:
> >> Hi,
> >>
> >> runtime errors doesn't provides the error line, in particular the memory error (out of memory)
> >>
> >> Please find a Lua patch in attachment.
> >> It provides backtrace condensed in one line.
> >
> > Indeed it's much better. Given that it doesn't change any feature and
> > only increases verbosity in case of problem, do you want it to be
> > backported to 1.8 as well ?
>
>
> It should great !
>
> Thierry

Backported to 1.8.

--
William Lallemand
Thierry Fournier
Re: [Patch] Lua / Increase error verbosity
June 11, 2018 11:50AM
thanks.

> On 11 Jun 2018, at 11:12, William Lallemand <[email protected]> wrote:
>
> On Fri, Jun 08, 2018 at 06:28:10PM +0200, Thierry Fournier wrote:
>>
>>
>>> On 8 Jun 2018, at 18:21, Willy Tarreau <[email protected]> wrote:
>>>
>>> On Fri, Jun 08, 2018 at 01:09:04PM +0200, Thierry Fournier wrote:
>>>> Hi,
>>>>
>>>> runtime errors doesn't provides the error line, in particular the memory error (out of memory)
>>>>
>>>> Please find a Lua patch in attachment.
>>>> It provides backtrace condensed in one line.
>>>
>>> Indeed it's much better. Given that it doesn't change any feature and
>>> only increases verbosity in case of problem, do you want it to be
>>> backported to 1.8 as well ?
>>
>>
>> It should great !
>>
>> Thierry
>
> Backported to 1.8.
>
> --
> William Lallemand
>
Sorry, only registered users may post in this forum.

Click here to login