| 826 | } |
| 827 | |
| 828 | void maybe_log_item(struct file_struct *file, int iflags, int itemizing, const char *buf) |
| 829 | { |
| 830 | int significant_flags = iflags & SIGNIFICANT_ITEM_FLAGS; |
| 831 | int see_item = itemizing && (significant_flags || *buf |
| 832 | || stdout_format_has_i > 1 || (INFO_GTE(NAME, 2) && stdout_format_has_i)); |
| 833 | int local_change = iflags & ITEM_LOCAL_CHANGE && significant_flags; |
| 834 | if (am_server) { |
| 835 | if (logfile_name && !dry_run && see_item |
| 836 | && (significant_flags || logfile_format_has_i)) |
| 837 | log_item(FLOG, file, iflags, buf); |
| 838 | } else if (see_item || local_change || *buf |
| 839 | || (S_ISDIR(file->mode) && significant_flags)) { |
| 840 | enum logcode code = significant_flags || logfile_format_has_i ? FINFO : FCLIENT; |
| 841 | log_item(code, file, iflags, buf); |
| 842 | } |
| 843 | } |
| 844 | |
| 845 | void log_delete(const char *fname, int mode) |
| 846 | { |
no test coverage detected