[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [ernie/master] Minor fixes to log statements for writing relay descriptors.
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Wed, 14 Apr 2010 17:42:43 +0200
Subject: Minor fixes to log statements for writing relay descriptors.
Commit: 3847a61efef80954b6aa815d98cd5a954c3cad2d
---
src/ArchiveWriter.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/ArchiveWriter.java b/src/ArchiveWriter.java
index 9a02daf..580d484 100644
--- a/src/ArchiveWriter.java
+++ b/src/ArchiveWriter.java
@@ -92,7 +92,7 @@ public class ArchiveWriter {
+ this.storedConsensuses + " consensus(es), " + this.storedVotes
+ " vote(s), " + this.storedServerDescriptors
+ " server descriptor(s), and " + this.storedExtraInfoDescriptors
- + " extra-info descriptor(s) to disk. Resetting counters.\n");
+ + " extra-info descriptor(s) to disk.\n");
this.storedConsensuses = 0;
this.storedVotes = 0;
this.storedServerDescriptors = 0;
@@ -103,7 +103,9 @@ public class ArchiveWriter {
* on level INFO.
*/
public void dumpStats() {
- StringBuilder sb = new StringBuilder(intermediateStats.toString());
+ StringBuilder sb = new StringBuilder("Finished writing relay "
+ + "descriptors to disk.\n");
+ sb.append(intermediateStats.toString());
sb.append("Statistics on the completeness of written relay "
+ "descriptors of the past 12 consensuses (Consensus/Vote, "
+ "valid-after, votes, server descriptors, extra-infos):");
--
1.6.5