summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a3e1363)
not getting delete messages, which ensures that the daemon's log-
file output includes all deletions when per-file logging is enabled.
extern int dry_run;
extern int am_daemon;
extern int am_server;
extern int dry_run;
extern int am_daemon;
extern int am_server;
file.mode = mode;
file.basename = fname;
file.mode = mode;
file.basename = fname;
- if (am_server && protocol_version >= 29 && len < MAXPATHLEN) {
+ if (!verbose && !log_format)
+ ;
+ else if (am_server && protocol_version >= 29 && len < MAXPATHLEN) {
if (S_ISDIR(mode))
len++; /* directories include trailing null */
send_msg(MSG_DELETED, fname, len);
if (S_ISDIR(mode))
len++; /* directories include trailing null */
send_msg(MSG_DELETED, fname, len);
log_formatted(FCLIENT, fmt, "del.", &file, &stats, ITEM_DELETED);
}
log_formatted(FCLIENT, fmt, "del.", &file, &stats, ITEM_DELETED);
}
- if (!am_daemon || dry_run)
+ if (!am_daemon || dry_run || !lp_transfer_logging(module_id))
return;
fmt = daemon_log_format_has_o_or_i ? lp_log_format(module_id) : "%i %n";
return;
fmt = daemon_log_format_has_o_or_i ? lp_log_format(module_id) : "%i %n";