[freenet-cvs] r23339 - trunk/freenet/src/freenet/support

2008-11-06 Thread [email protected]
Author: j16sdiz
Date: 2008-11-06 08:44:34 + (Thu, 06 Nov 2008)
New Revision: 23339

Modified:
   trunk/freenet/src/freenet/support/FileLoggerHook.java
Log:
comment. entries, not lines.

Modified: trunk/freenet/src/freenet/support/FileLoggerHook.java
===
--- trunk/freenet/src/freenet/support/FileLoggerHook.java   2008-11-06 
08:44:13 UTC (rev 23338)
+++ trunk/freenet/src/freenet/support/FileLoggerHook.java   2008-11-06 
08:44:34 UTC (rev 23339)
@@ -820,8 +820,8 @@
}
sb.append('\n');

+   // Write stacktrace if available
for(int j=0;j<20 && e != null;j++) {
-
sb.append(e.toString());

StackTraceElement[] trace = e.getStackTrace();
@@ -865,6 +865,7 @@
ss = list.removeFirst();
} catch (NoSuchElementException e) {
// Yes I know this is 
impossible but it happens with 1.6 with heap profiling enabled
+   // This is a bug in 
sun/netbeans profiler around 2006 era
noElementCount++;
if(noElementCount > 1000) {

System.err.println("Lost log line because of constant 
NoSuchElementException's");
@@ -879,7 +880,7 @@
String err =
"GRRR: ERROR: Logging too fast, chopped 
"
+ x
-   + " lines, "
+   + " entries, "
+ listBytes
+ " bytes in memory\n";
byte[] buf = err.getBytes();




[freenet-cvs] r23339 - trunk/freenet/src/freenet/support

2008-11-06 Thread j16sdiz
Author: j16sdiz
Date: 2008-11-06 08:44:34 + (Thu, 06 Nov 2008)
New Revision: 23339

Modified:
   trunk/freenet/src/freenet/support/FileLoggerHook.java
Log:
comment. entries, not lines.

Modified: trunk/freenet/src/freenet/support/FileLoggerHook.java
===
--- trunk/freenet/src/freenet/support/FileLoggerHook.java   2008-11-06 
08:44:13 UTC (rev 23338)
+++ trunk/freenet/src/freenet/support/FileLoggerHook.java   2008-11-06 
08:44:34 UTC (rev 23339)
@@ -820,8 +820,8 @@
}
sb.append('\n');
 
+   // Write stacktrace if available
for(int j=0;j<20 && e != null;j++) {
-
sb.append(e.toString());

StackTraceElement[] trace = e.getStackTrace();
@@ -865,6 +865,7 @@
ss = list.removeFirst();
} catch (NoSuchElementException e) {
// Yes I know this is 
impossible but it happens with 1.6 with heap profiling enabled
+   // This is a bug in 
sun/netbeans profiler around 2006 era
noElementCount++;
if(noElementCount > 1000) {

System.err.println("Lost log line because of constant 
NoSuchElementException's");
@@ -879,7 +880,7 @@
String err =
"GRRR: ERROR: Logging too fast, chopped 
"
+ x
-   + " lines, "
+   + " entries, "
+ listBytes
+ " bytes in memory\n";
byte[] buf = err.getBytes();

___
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs