[mythtv] LOG line length limit

Klaas de Waal klaas.de.waal at gmail.com
Tue Apr 14 17:09:52 UTC 2020


On Mon, 23 Mar 2020 at 20:18, Klaas de Waal <klaas.de.waal at gmail.com> wrote:

>
>
> 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.
>>
>
> Hi David,

Have tested this with (of course) the channelscanner output and it works
OK, no size limits found and no other changes observed. Perfect.

Thanks,
Klaas.


>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20200414/66945c9a/attachment.htm>


More information about the mythtv-dev mailing list