return NULL;
}
-static void log_open(void)
+void log_open(void)
{
if (logfname && !logfile) {
extern int orig_umask;
}
}
+void log_close(void)
+{
+ if (logfile) {
+ fclose(logfile);
+ logfile = NULL;
+ }
+}
+
static void logit(int priority, char *buf)
{
if (logfname) {
#endif
}
-void log_close(void)
-{
- if (logfile) {
- fclose(logfile);
- logfile = NULL;
- }
-}
-
/* this is the underlying (unformatted) rsync debugging function. Call
* it with FINFO, FERROR or FLOG */
void rwrite(enum logcode code, char *buf, int len)