Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
hugodutka merged 7 commits intomainfromhugodutka/reduce-log-volume-on-startup
Feb 20, 2025

Conversation

hugodutka
Copy link
Contributor

@hugodutkahugodutka commentedFeb 18, 2025
edited
Loading

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:

Screenshot 2025-02-18 at 16 31 32

The warning is due to running a development site-less build. It wouldn't show in a release build.

johnstcn, mafredri, and matifali reacted with heart emoji
@hugodutkahugodutkaforce-pushed thehugodutka/reduce-log-volume-on-startup branch 4 times, most recently frombfaffb7 toe18ef6fCompareFebruary 18, 2025 17:13
@hugodutkahugodutka marked this pull request as ready for reviewFebruary 18, 2025 17:18
@hugodutkahugodutkaforce-pushed thehugodutka/reduce-log-volume-on-startup branch 2 times, most recently from5c7de02 tob1b217bCompareFebruary 18, 2025 18:02
Copy link
Member

@mafredrimafredri left a comment
edited
Loading

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 😅 .

Copy link
Contributor

@spikecurtisspikecurtis left a 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

@hugodutkahugodutkaforce-pushed thehugodutka/reduce-log-volume-on-startup branch 3 times, most recently from54b3e03 to2f31144CompareFebruary 19, 2025 14:15
@hugodutkahugodutkaforce-pushed thehugodutka/reduce-log-volume-on-startup branch from2f31144 toc9033d8CompareFebruary 20, 2025 10:45
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) {
Copy link
Member

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).

Copy link
ContributorAuthor

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.

mafredri reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@mafredri done!

@hugodutkahugodutkaforce-pushed thehugodutka/reduce-log-volume-on-startup branch fromc9033d8 toeaac36eCompareFebruary 20, 2025 12:39
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks!

@hugodutkahugodutkaforce-pushed thehugodutka/reduce-log-volume-on-startup branch fromeaac36e toe019f3cCompareFebruary 20, 2025 13:11
@hugodutkahugodutkaforce-pushed thehugodutka/reduce-log-volume-on-startup branch frome019f3c to1e6d7ecCompareFebruary 20, 2025 13:34
@hugodutkahugodutka merged commit4449931 intomainFeb 20, 2025
30 checks passed
@hugodutkahugodutka deleted the hugodutka/reduce-log-volume-on-startup branchFebruary 20, 2025 15:33
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 20, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@sreyasreyasreya left review comments

@spikecurtisspikecurtisspikecurtis left review comments

@matifalimatifalimatifali left review comments

@mafredrimafredrimafredri approved these changes

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@hugodutkahugodutka

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@hugodutka@mafredri@sreya@johnstcn@spikecurtis@matifali

[8]ページ先頭

©2009-2025 Movatter.jp