[mythtv] LOG line length limit

Klaas de Waal klaas.de.waal at gmail.com
Mon Mar 23 19:18:37 UTC 2020


On Mon, 23 Mar 2020 at 20:01, David Hampton <mythtv at love2code.net> wrote:

> On Mon, 2020-03-23 at 18:45 +0100, Klaas de Waal wrote:
> > Hi,
> >
> > There is a hard-coded line length limit of about 2kbytes for the LOG
> > messages.
> > This is most likely the reason why a lot of the output of the mythtv-
> > setup channel scanner, notably the channel lists, are written
> > directly to stdout instead of via the LOG system.
> > The disadvantage of this is that the output sometimes becomes a mess
> > and that the stdout messages come before the LOG messages that were
> > created earlier.
> >
> > To fix this I would like to write all output with LOG messages but
> > with this I have hit the length limit.
> >
> > Are there good reasons for the line limit size or is it feasible to
> > replace the fixed message buffer of 2kbyte with something dynamically
> > allocated?
>
> Hi Klaus,
>
> I have uncommitted code to convert logging to use QString and
> std::string internally instead of fixed length buffers, but I'm still
> using some fixed lengths in places.  I will work on this code some more
> to try and make the log messages can be truly variable length.
>
> David
>
>
> Hi David,

That is good news! Count on me to do the test drive when you have the code
ready.

Thanks,
Klaas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20200323/b6f0c068/attachment.htm>


More information about the mythtv-dev mailing list