Textualize / toolong

A terminal application to view, tail, merge, and search log files (plus JSONL).

Home Page:https://www.textualize.io/

Repository from Github https://github.comTextualize/toolongRepository from Github https://github.comTextualize/toolong

Hangs on very long lines

Rictus opened this issue · comments

commented

It seems toolong hangs indefinitly when it encounters a line that is... toolong :)

This issue exists for toolong 1.5.0, I don't reproduce with toolong 1.4.0

Here's a test file
root.log.139.txt
And here's a capture of htop
image

while toolong looks like this
image

I'll take a look at the code and make a PR if I can find the time.

Edit: Looks like it's the RegexLogFormat that takes too much time to resolve

Thanks

commented

Hello @willmcgugan
Do you think there is more work to be done or maybe it's the wrong direction?

Thanks!

Just ran into this with a .jsonl file that contained a very long traceback. Hangs on opening with 1.5.0.

(Indeed, 1.4.0 does open the file, but the entries are mangled in the main window and split across multiple lines.)