Open NoNameProvided opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur.
Author: | NoNameProvided |
---|---|
Assignees: | - |
Labels: | `Container Instances`, `Service Attention`, `needs-triage`, `question` |
Milestone: | - |
container
We have a container which output logs via pino. When the output is not formatted the terminal will continuously blink as I assume the CLI compares the requested log to the currently printed one and updates the terminal with the latest lines.
However when we pipe the output of the command to
pino-pretty
which formats the log statement to human readable format, the CLI will continuously print the same lines over and over again in every refresh cycle. (As I assume it cannot find a match between the received value and what is printed in the terminal.Actual behavior
Let's say we have a container what prints one and only one line of message. When running the following command:
The terminal will display that line once, but the terminal will keep blinking as the content is updated. However when running the following command:
The output from the container will be printed over and over again for every refresh cycle.
Expected behavior
I would expect that the Azure CLI keeps an internal buffer of received messages, calculates the difference internally and only prints to the console when a new line is received.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.