Repository navigation
Improve: reduce the container boot log to six lines - #23
Merged
Merged
Conversation
Replace the boxed banner with aligned label rows and drop the guessed http://localhost:<port> URL, which named the internal API port while nginx serves on 80 and the shipped compose maps 8700:80. Add one logfmt readiness record, since the banner bypasses both level filtering and the logfmt shape and left nothing greppable to prove the app came up. Demote the widget registry inventory to debug, collapse the two TRUST_PROXY warnings into a single branch, quiet supervisord to warn, keep the event listener protocol out of the container log, and silence the entrypoint's nginx config check on success.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
http://localhost:<PORT>line, which named the internal API port; the banner now states the port the container listens on.vprefix, so a locally built image readsStackyard devinstead ofvdev.msg="server ready"with version, port, widget count and Node version.infotodebug; refused manifests keep their existingwarnrecords.TRUST_PROXYwarnings into one branch, so a misconfigured install gets a single short sentence instead of two long ones.loglevel=warninsupervisord.conf, with a comment recording what that costs and why it is acceptable.stdout_logfileaway from/dev/stdout, keeping theREADY/RESULT/OKprotocol out ofdocker logs.stderr_logfileis unchanged, so the fatal message still reaches the operator.nginx -t -q, which prints only on failure.Boot output on a correctly configured container goes from 23 lines to 6 plus a leading blank. A misconfigured one adds exactly one
WRNline.Testing
All green, including the Docker build and the container's fatal-exit path checked against an unmodified control. Added 13 tests: the banner, the readiness record, the registry level at default and at debug, both
TRUST_PROXYbranches, the event listener wiring and the quiet config check.Checklist