Log the transfer of a file. If the code is FCLIENT, the output just goes * to stdout. If it is FLOG, it just goes to the log file. Otherwise we * output to both. */
| 816 | * to stdout. If it is FLOG, it just goes to the log file. Otherwise we |
| 817 | * output to both. */ |
| 818 | void log_item(enum logcode code, struct file_struct *file, int iflags, const char *hlink) |
| 819 | { |
| 820 | const char *s_or_r = am_sender ? "send" : "recv"; |
| 821 | |
| 822 | if (code != FLOG && stdout_format && !am_server) |
| 823 | log_formatted(FCLIENT, stdout_format, s_or_r, file, NULL, iflags, hlink); |
| 824 | if (code != FCLIENT && logfile_format && *logfile_format) |
| 825 | log_formatted(FLOG, logfile_format, s_or_r, file, NULL, iflags, hlink); |
| 826 | } |
| 827 | |
| 828 | void maybe_log_item(struct file_struct *file, int iflags, int itemizing, const char *buf) |
| 829 | { |
no test coverage detected