Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I see the full log of the build for a service? #3691

Closed
phil-s opened this issue Mar 20, 2024 · 2 comments
Closed

How do I see the full log of the build for a service? #3691

phil-s opened this issue Mar 20, 2024 · 2 comments

Comments

@phil-s
Copy link

phil-s commented Mar 20, 2024

Recent lando versions have taken to restricting the service build output to a small scrolling 'window' within the terminal, such that most of the output disappear shortly after it appears.

I want to review the complete output, either in the terminal, or in a log file.

Using the -v (verbose) option does not change the "scrolling window" behaviour, and nor even does export TERM=dumb (which seems like a bug).

Short of switching to a genuine dumb terminal emulator, how can I do this? It feels like there must be some kind of switch to revert back to the old output style.

@pirog
Copy link
Sponsor Member

pirog commented Mar 20, 2024

@phil-s to be clear this output actually comes from docker and not from lando. that said i believe it is configurable on the docker with something like this:

export BUILDKIT_PROGRESS=plain

FWIW, Lando 4 services, which we are starting to roll out will show the full build output when you use --debug or -vvv. If you are interested in seeing what that looks like you can lando start --debug this example: https://github.com/lando/core/tree/4916109f946d435d4c3f1ee5f99da4221823176f/examples/l337

@phil-s
Copy link
Author

phil-s commented Mar 20, 2024

Ah, that's excellent. I can confirm that BUILDKIT_PROGRESS=plain resolves my problem. Thank you for that (and for the clarification). The debug/verbose behaviour for lando 4 services also sounds perfect.

@phil-s phil-s closed this as completed Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants