[or-cvs] give a better log message when we don"t have a good mirror of

Roger Dingledine arma at seul.org
Sun Jan 30 06:08:44 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	directory.c 
Log Message:
give a better log message when we don't have a good mirror of
the directory yet and somebody asks for it.


Index: directory.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.206
retrieving revision 1.207
diff -u -d -r1.206 -r1.207
--- directory.c	29 Jan 2005 11:48:37 -0000	1.206
+++ directory.c	30 Jan 2005 06:08:42 -0000	1.207
@@ -874,7 +874,7 @@
     tor_free(url);
 
     if (dlen == 0) {
-      log_fn(LOG_NOTICE,"My directory is empty. Closing.");
+      log_fn(LOG_NOTICE,"Client asked for the mirrored directory, but we don't have a good one yet. Sending 503 Dir not available.");
       write_http_status_line(conn, 503, "Directory unavailable");
       return 0;
     }



More information about the tor-commits mailing list