Closed fluca1978 closed 2 years ago
Yes, the debug output is done by the running process whereas the progress bar output is done by a dedicated process and there is no control of the writing between them. The solution could be to send both messages to a single logger process that could serialize the writing but this is not a high priority.
Won't be done.
I'm running
pgbadger
11.7 on FreeBSD, using bothbash
andzsh
(if that matters). In debug output,-v
, I see the following:Looking carefully at the last line in the above output, you can see there's an
s:
after the timestamp and thevents
after the closing bracket. Appears to me those are pieces ofupdate_progress_bar
(queries
andevents
), and the thing go even wort if the number of queries (i.e., the size of the log) increases. I suspect before callinglogmsg
the output line should be cleared at all.Invoking with the new option
--no-progressbar
removes the problem, so that I came to the conclusion it is something related to the line buffer filled with the progress bar: