[or-cvs] r16368: note a feature (bugfix) we should do one day (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Sun Aug 3 05:35:18 UTC 2008
Author: arma
Date: 2008-08-03 01:35:18 -0400 (Sun, 03 Aug 2008)
New Revision: 16368
Modified:
tor/trunk/src/or/circuituse.c
Log:
note a feature (bugfix) we should do one day
Modified: tor/trunk/src/or/circuituse.c
===================================================================
--- tor/trunk/src/or/circuituse.c 2008-08-03 05:28:59 UTC (rev 16367)
+++ tor/trunk/src/or/circuituse.c 2008-08-03 05:35:18 UTC (rev 16368)
@@ -1001,15 +1001,18 @@
if (!want_onehop && !router_have_minimum_dir_info()) {
if (!connection_get_by_type(CONN_TYPE_DIR)) {
+ int severity = LOG_NOTICE;
+ /* FFFF if this is a tunnelled directory fetch, don't yell
+ * as loudly. the user doesn't even know it's happening. */
if (options->UseBridges && bridges_known_but_down()) {
- log_notice(LD_APP|LD_DIR,
- "Application request when we're believed to be "
- "offline. Optimistically trying known bridges again.");
+ log_fn(severity, LD_APP|LD_DIR,
+ "Application request when we're believed to be "
+ "offline. Optimistically trying known bridges again.");
bridges_retry_all();
} else if (!options->UseBridges || any_bridge_descriptors_known()) {
- log_notice(LD_APP|LD_DIR,
- "Application request when we're believed to be "
- "offline. Optimistically trying directory fetches again.");
+ log_fn(severity, LD_APP|LD_DIR,
+ "Application request when we're believed to be "
+ "offline. Optimistically trying directory fetches again.");
routerlist_retry_directory_downloads(time(NULL));
}
}
More information about the tor-commits
mailing list