- /* The server side doesn't use our log-format, but if verbose isn't
- * on, they may need to know that we want some extra messages. */
- if (log_format && !verbose && !itemize_changes)
- args[ac++] = "--log-format=specified";
+ /* The server side doesn't use our log-format, but in certain
+ * circumstances they need to know a little about the option. */
+ if (log_format && am_sender) {
+ if (log_format_has_i)
+ args[ac++] = "--log-format=%i";
+ else if (log_format_has_o_or_i)
+ args[ac++] = "--log-format=%o";
+ else if (!verbose)
+ args[ac++] = "--log-format=X";
+ }