Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes coder/internal#54.
Currently,
coder server
doesn't take any steps to ensure the access URL it outputs stands out among the initial stream of logs.To address this, this PR:
Wraps the access URL in a colourful box (ANSI bright blue (12) box, ANSI magenta (5) hyperlink)

Opens the access URL in the default browser, if the
BROWSER
env var is set, and if outputting to a TTY. Can be disabled using--no-open
. This is the same behaviour ascoder login
.Improves the naming of some loggers, as some logs were previously duplicated with no indication as to why.
Changes some startup logs from
info
todebug
The full startup output is now:
I'd argue the remaining
info
level logs are appropriate, I think something like how many provisioners are running, and what terraform version they're running are worth outputting by default, but very much open to thoughts.