Repository navigation
fix: mirror upstream server diagnostic routing and max verbosity - #8198
Merged
Merged
Conversation
oferchen
force-pushed
the
fix/mirror-server-diagnostic-routing
branch
from
October 14, 2026 15:20
2ce040a to
7236908
Compare
A server now frames every FINFO line - all --info and --debug output - to the client as MSG_INFO unless --quiet, and a daemon still logs it (log.c:312-366 rwrite). The receiver drains it with the error class; the sender drains it before each idle flush and before its final NDX_DONE. A client receiver keeps its own FINFO for its renderer. The client no longer forwards --debug=: server_options() builds --info= only (options.c:3126-3130). A server gets debug levels from -v or -M. The daemon worker applies --info=/--debug= words from the client argv after the -v seeding, then caps every flag to the module max verbosity rows (clientserver.c:1223, options.c:546-572). The server honours the packed q letter (options.c:2804-2805).
oferchen
force-pushed
the
fix/mirror-server-diagnostic-routing
branch
from
October 14, 2026 15:54
7236908 to
ad32874
Compare
mevanlc
pushed a commit
to mevanlc/rsync-rs
that referenced
this pull request
Oct 14, 2026
…erchen#8198) A server now frames every FINFO line - all --info and --debug output - to the client as MSG_INFO unless --quiet, and a daemon still logs it (log.c:312-366 rwrite). The receiver drains it with the error class; the sender drains it before each idle flush and before its final NDX_DONE. A client receiver keeps its own FINFO for its renderer. The client no longer forwards --debug=: server_options() builds --info= only (options.c:3126-3130). A server gets debug levels from -v or -M. The daemon worker applies --info=/--debug= words from the client argv after the -v seeding, then caps every flag to the module max verbosity rows (clientserver.c:1223, options.c:546-572). The server honours the packed q letter (options.c:2804-2805).
This was referenced Oct 14, 2026
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
Mirror upstream's diagnostic routing between client, server and daemon.
rwrite): the server receiver and sender drain--info/--debugevents to the client as MSG_INFO once multiplexing is active (io.c:1094), and also write them to the daemon log. Lines produced before multiplexing starts are logged only.-qsuppresses them (log.c:344-346). Server-sender debug output used to be dropped entirely.--info=(options.c:3126-3130server_options):--debugis no longer forwarded.-M--info=/-M--debug=words (options.c:1883-1891), then caps each flag at the module'smax verbosity(options.c:546-572limit_output_verbosity, clientserver.c:1223). The default of 1 means a stock daemon emits no debug output (task 2641).q(options.c:2804-2805), which was previously ignored.Tests
New
tests/server_diagnostics_reach_client.rs, 8 end-to-end cases covering SSH push and pull at -vvv versus -vv,-q, daemonmax verbosity3 versus the default 1,-M--debugcapping, daemon-q, and daemon-sender lines reaching both the client and the daemon log (log.c:312-332, log before send). On master, 4 of the 7 fail; the 3 negative controls pass. All 8 pass here.Unit tests for the peer drain order, the quiet drain, the error-only drain, the per-flag limit,
qparsing, and argv without--debug.8 of 8 mutations were caught, each by its own test.
The -v, -vv and -q client output for SSH and daemon, push and pull, is unchanged from master once rate and time fields are masked.
tests/upstream_compat_inc_recurse_sender_oracle.rsused to rely on the client forwarding--debug=flist2to the upstream server, which upstream never does. Its three cells now pass-M--debug=flist2, the upstream mechanism (options.c:1888-1891). The daemon fixture already setsmax verbosity = 4, above FLIST2's row 3. Against the real 3.4.4 oracle the old file fails 3 of 4 and the new one passes 4 of 4, and pointing it at a missing oracle binary fails all 4, so the passes are not a silent skip. A sweep found no other test that depends on a forwarded--debug.Deviations from upstream
--debug=Xand--info=Xonly in the=form.