X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/c5b7aa153235d39720d80c3e7e700d83e9ff2e91..374c3e1278e1e5e14e218c3149e5d633f7e044b6:/log.c diff --git a/log.c b/log.c index 034aaccb..87e119f8 100644 --- a/log.c +++ b/log.c @@ -52,13 +52,13 @@ extern char *log_format; extern iconv_t ic_chck; #endif -static int log_initialised; static int logfile_was_closed; static char *logfname; static FILE *logfile; struct stats stats; int log_got_error = 0; +int log_initialised; struct { int code; @@ -769,11 +769,11 @@ void log_exit(int code, const char *file, int line) /* VANISHED is not an error, only a warning */ if (code == RERR_VANISHED) { - rprintf(FINFO, "rsync warning: %s (code %d) at %s(%d) [%s]\n", - name, code, file, line, who_am_i()); + rprintf(FINFO, "rsync warning: %s (code %d) at %s(%d) [%s=%s]\n", + name, code, file, line, who_am_i(), RSYNC_VERSION); } else { - rprintf(FERROR, "rsync error: %s (code %d) at %s(%d) [%s]\n", - name, code, file, line, who_am_i()); + rprintf(FERROR, "rsync error: %s (code %d) at %s(%d) [%s=%s]\n", + name, code, file, line, who_am_i(), RSYNC_VERSION); } } }