1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-22 16:35:25 +02:00

[288656] Additional tracing for DsfSession.

This commit is contained in:
John Cortell 2009-09-08 22:56:26 +00:00
parent e4e9e7fab2
commit 9067c010c5

View file

@ -334,6 +334,18 @@ public class DsfSession
*/
@ThreadSafe
public void dispatchEvent(final Object event, final Dictionary<?,?> serviceProperties) {
if (DEBUG_SESSION_DISPATCHES) {
String msg = new Formatter().format(
"%s Dispatching event %s to session %s from thread \"%s\" (%d)", //$NON-NLS-1$
DsfPlugin.getDebugTime(),
LoggingUtils.toString(event),
LoggingUtils.toString(this),
Thread.currentThread().getName(),
Thread.currentThread().getId()
).toString();
DsfPlugin.debug(msg);
}
getExecutor().submit(new DsfRunnable() {
public void run() { doDispatchEvent(event, serviceProperties);}
@Override