MCPcopy Index your code
hub / github.com/RsyncProject/rsync / logit

Function logit

log.c:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static void logit(int priority, const char *buf)
123{
124 if (logfile_was_closed)
125 logfile_reopen();
126 if (logfile_fp) {
127 fprintf(logfile_fp, "%s [%d] %s", timestring(time(NULL)), (int)getpid(), buf);
128 fflush(logfile_fp);
129 } else {
130 syslog(priority, "%s", buf);
131 }
132}
133
134static void syslog_init()
135{

Callers 2

syslog_initFunction · 0.85
rwriteFunction · 0.85

Calls 2

logfile_reopenFunction · 0.85
timestringFunction · 0.85

Tested by

no test coverage detected