Moved the calls to client_addr() and client_name() below the lp_load()
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index 034aacc..87e119f 100644 (file)
--- 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);
                }
        }
 }