[logback-dev] svn commit: r1412 - in logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse: model reciever
noreply.seb at qos.ch
noreply.seb at qos.ch
Wed Mar 7 15:40:58 CET 2007
Author: seb
Date: Wed Mar 7 15:40:58 2007
New Revision: 1412
Modified:
logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/model/LoggingEventManager.java
logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/reciever/SocketNode.java
Log:
Let's be sure that the thread name is the good one
Modified: logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/model/LoggingEventManager.java
==============================================================================
--- logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/model/LoggingEventManager.java (original)
+++ logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/model/LoggingEventManager.java Wed Mar 7 15:40:58 2007
@@ -39,8 +39,6 @@
}
public void addLoggingEvent(LoggingEvent event) {
- //trick to keep the original thread name
- event.getThreadName();
loggingEventList.add(event);
listSizeCheck();
if (sendingEvents) {
Modified: logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/reciever/SocketNode.java
==============================================================================
--- logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/reciever/SocketNode.java (original)
+++ logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/reciever/SocketNode.java Wed Mar 7 15:40:58 2007
@@ -39,6 +39,8 @@
while (true) {
// read an event from the wire
event = (LoggingEvent) ois.readObject();
+ //trick to keep the original thread name
+ event.getThreadName();
//add it to the manager's LoggingEvent list
LoggingEventManager.getManager().addLoggingEvent(event);
}
More information about the logback-dev
mailing list