<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 23 Mar 2020 at 20:18, Klaas de Waal <<a href="mailto:klaas.de.waal@gmail.com">klaas.de.waal@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 23 Mar 2020 at 20:01, David Hampton <<a href="mailto:mythtv@love2code.net" target="_blank">mythtv@love2code.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 2020-03-23 at 18:45 +0100, Klaas de Waal wrote:<br>
> Hi,<br>
> <br>
> There is a hard-coded line length limit of about 2kbytes for the LOG<br>
> messages.<br>
> This is most likely the reason why a lot of the output of the mythtv-<br>
> setup channel scanner, notably the channel lists, are written<br>
> directly to stdout instead of via the LOG system.<br>
> The disadvantage of this is that the output sometimes becomes a mess<br>
> and that the stdout messages come before the LOG messages that were<br>
> created earlier.<br>
> <br>
> To fix this I would like to write all output with LOG messages but<br>
> with this I have hit the length limit.<br>
> <br>
> Are there good reasons for the line limit size or is it feasible to<br>
> replace the fixed message buffer of 2kbyte with something dynamically<br>
> allocated?<br>
<br>
Hi Klaus,<br>
<br>
I have uncommitted code to convert logging to use QString and<br>
std::string internally instead of fixed length buffers, but I'm still<br>
using some fixed lengths in places.  I will work on this code some more<br>
to try and make the log messages can be truly variable length.<br> </blockquote></div></div></blockquote><div>Hi David,</div><div><br></div><div>Have tested this with (of course) the channelscanner output and it works OK, no size limits found and no other changes observed. Perfect.</div><div><br></div><div>Thanks,</div><div>Klaas.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br></blockquote></div></div>
</blockquote></div></div>