Open malnoxon opened 7 months ago
Just to clarify, I think you mean "0.12.2" and not "0.11.2", right? The first set of screenshots have changes that are present in the 0.12 series.
You're right, those screenshots were from 0.12.2.
Actual 0.11.2 screenshots:
The pretty-print is not happening because the format does not set a body-field
. In your format file, can you add "body-field": "msg"
and try again.
I would say this particular case should work without the body field, though. Leave the bug open and I'll try to improve the situation.
Pretty printing does work with that change, thank you!
lnav version Expected behavior verified on v10.0.1, issue encontered on v0.11.1 and v0.11.2
Describe the bug I have a log file that I have a custom formatter to parse. Previously it would successfully parse the file and I could then use the pretty print mode to pretty print the json blob in the context but after upgrading the parser parses it but pretty printing does nothing.
What I see in lnav on the raw log view 0.12.2
What I see on pretty print in ~0.11.2~ 0.12.2
What I see on 0.10.1 (and expect to see on later versions but don't)
To Reproduce Create a new file
~/.lnav/formats/generic_json/format.json
with the following contentslnav -i ~/.lnav/formats/generic_json/format.json
Create a log file:
Open the log file with lnav
<Shift>+P
to try to pretty print