MCPcopy Create free account
hub / github.com/RsyncProject/rsync / log_item

Function log_item

log.c:818–826  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

816 * to stdout. If it is FLOG, it just goes to the log file. Otherwise we
817 * output to both. */
818void 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
828void maybe_log_item(struct file_struct *file, int iflags, int itemizing, const char *buf)
829{

Callers 4

send_filesFunction · 0.85
maybe_log_itemFunction · 0.85
itemizeFunction · 0.85
recv_filesFunction · 0.85

Calls 1

log_formattedFunction · 0.85

Tested by

no test coverage detected