You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detected this situation while running a code that prints a QR code to the terminal using qrcode-terminal.
It was using the small option, and checking the code, the lib seems to just print some unicode characters.
When running this script piping the output (node index.js | pino-pretty), the higher num is, the longer it takes for the A logs to appear in the terminal, and when it happens, many of them are shown at once, instead of every second.
Running the code without piping to pino-pretty, or changing char to ASCII, like a dot (.), makes everything run normal again.
Environment
SO: Ubuntu 21.10 impish
Node: v17.2.0
pino-pretty: 7.6.0
The text was updated successfully, but these errors were encountered:
matheusb-comp
changed the title
[BUG] Piping node output breaks console.log
[BUG] Piping non-ASCII output breaks console.log
Apr 5, 2022
Sorry, but I don't believe I have enough knowledge about stream transformation to send a PR to fix this.
I tried looking at the code and got confused about how it actually works.
As a workaround, I'm now using pino-pretty via programmatic integration, but using an environment variable to add the transport.target only in development.
Detected this situation while running a code that prints a QR code to the terminal using qrcode-terminal.
It was using the
small
option, and checking the code, the lib seems to just print some unicode characters.Example script:
When running this script piping the output (
node index.js | pino-pretty
), the highernum
is, the longer it takes for theA
logs to appear in the terminal, and when it happens, many of them are shown at once, instead of every second.Running the code without piping to
pino-pretty
, or changingchar
to ASCII, like a dot (.
), makes everything run normal again.Environment
SO: Ubuntu 21.10 impish
Node: v17.2.0
pino-pretty: 7.6.0
The text was updated successfully, but these errors were encountered: