]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Demote a warn when enabling CellStatistics
authorSebastian Hahn <sebastian@torproject.org>
Wed, 15 Sep 2010 23:13:51 +0000 (01:13 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 15 Sep 2010 23:13:51 +0000 (01:13 +0200)
When the CellStatistics option is off, we don't store cell insertion
times. Doing so would also not be very smart, because there seem to
still be some performance issues with this type of statistics. Nothing
harmful happens when we don't have insertion times, so we don't need to
alarm the user.

changes/bug1921 [new file with mode: 0644]
src/or/relay.c

diff --git a/changes/bug1921 b/changes/bug1921
new file mode 100644 (file)
index 0000000..748d50b
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Demote a warn to info that happens when the CellStatistics option
+      was just enabled. Fixes bug 1921; bugfix on 0.2.2.1-alpha. Reported
+      by Moritz Bartl.
index a4f7718d902891b0f0c1ebfb097535e48bcca9a6..f6f5d92fcba7e2bbcd33f3caffa016d7ff6eb245 100644 (file)
@@ -2297,7 +2297,9 @@ connection_or_flush_from_first_active_circuit(or_connection_t *conn, int max,
       flushed = (uint32_t)((now.tv_sec % SECONDS_IN_A_DAY) * 100L +
                  (uint32_t)now.tv_usec / (uint32_t)10000L);
       if (!it_queue || !it_queue->first) {
-        log_warn(LD_BUG, "Cannot determine insertion time of cell.");
+        log_info(LD_GENERAL, "Cannot determine insertion time of cell. "
+                             "Looks like the CellStatistics option was "
+                             "recently enabled.");
       } else {
         or_circuit_t *orcirc = TO_OR_CIRCUIT(circ);
         insertion_time_elem_t *elem = it_queue->first;