[or-cvs] [ernie/master] Don't write logs on FINE or below to website.
karsten at torproject.org
karsten at torproject.org
Wed Apr 14 22:23:19 UTC 2010
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Thu, 15 Apr 2010 00:22:56 +0200
Subject: Don't write logs on FINE or below to website.
Commit: 75877e3c7bc20456028eb7b578a0ed9c5ea78669
---
src/LoggingConfiguration.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/LoggingConfiguration.java b/src/LoggingConfiguration.java
index df2ff0f..c29d5e3 100644
--- a/src/LoggingConfiguration.java
+++ b/src/LoggingConfiguration.java
@@ -200,7 +200,11 @@ public class LoggingConfiguration {
+ record.getMessage().replaceAll("\n", "<br/>")
+ "</td>\n"
+ " </tr>\n";
- if (record.getLevel().equals(Level.INFO)) {
+ if (record.getLevel().equals(Level.FINE) ||
+ record.getLevel().equals(Level.FINER) ||
+ record.getLevel().equals(Level.FINEST)) {
+ /* Ignore messages on FINE, FINER, and FINEST. */
+ } else if (record.getLevel().equals(Level.INFO)) {
this.infos.append(logMessage);
} else {
this.warnings.append(logMessage);
--
1.6.5
More information about the tor-commits
mailing list