- Notifications
You must be signed in to change notification settings - Fork914
chore: reduce log volume on server startup#16608
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
bfaffb7
toe18ef6f
Compare5c7de02
tob1b217b
Compare
mafredri left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Some nice changes in here, thanks. Had a few comments/concerns and CC'd@johnstcn and@spikecurtis on the ones I was uncertain about.
Hmm, looks like something went awry with the review. ccs for Cian on crypto, Spike on tailnet seem to be gone 😅 .
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Ok from my perspective
54b3e03
to2f31144
Compare2f31144
toc9033d8
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
provisioner/terraform/serve.go Outdated
slog.F("max_version", maxTerraformVersion.String())) | ||
// When running in-memory provisioners, each one reaches this point. | ||
// It's not useful to print this to the user multiple times, so we ensure to log it once. | ||
if !loggedVersion.Swap(true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It's possible now that we end up logging on a minor terraform version mis-match, in which case we end up downloading a newer one and this log ends up reporting incorrect information.
Perhaps it's better moved to Serve?
PS. If we can avoid the package level state, that'd be great (for instance, can be a source of flaky tests).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I didn't address this one yet - let me fix that before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@mafredri done!
Uh oh!
There was an error while loading.Please reload this page.
c9033d8
toeaac36e
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
eaac36e
toe019f3c
Comparee019f3c
to1e6d7ec
Compare4449931
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Addresses#16231.
This PR reduces the volume of logs we print after server startup in order to surface the web UI URL better.
Here are the logs after the changes a couple of seconds after starting the server:
The warning is due to running a development site-less build. It wouldn't show in a release build.