diff options
author | Jiri Vanek <[email protected]> | 2013-11-01 13:23:25 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-11-01 13:23:25 +0100 |
commit | f7d9707866ab118b6981207be54ab78c8b022fdc (patch) | |
tree | d4fedab3eeba02c2660cc4e4c0cadaee5696f5ba /netx/net | |
parent | 113381d62d1eabb685f248573beff4195076740b (diff) |
Synced headers between PLUGIN_DEBUG, PLUGIN_ERROR and javaside
* netx/net/sourceforge/jnlp/util/logging/OutputController.java: (getHeader) added thread id and name to log header.
* plugin/icedteanp/IcedTeaPluginUtils.h: (PLUGIN_DEBUG) (PLUGIN_ERROR) headerrs generation code moved to macro (CREATE_HEADER0). Both headers now contains pthread_self and g_thread_self. Fixed indentation.
Diffstat (limited to 'netx/net')
-rw-r--r-- | netx/net/sourceforge/jnlp/util/logging/OutputController.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/util/logging/OutputController.java b/netx/net/sourceforge/jnlp/util/logging/OutputController.java index 41fffc4..7a78f58 100644 --- a/netx/net/sourceforge/jnlp/util/logging/OutputController.java +++ b/netx/net/sourceforge/jnlp/util/logging/OutputController.java @@ -346,6 +346,10 @@ public class OutputController { if (stack != null) { sb.append('[').append(getCallerClass(stack)).append(']'); } + sb.append(" NETX Thread# ") + .append(Integer.toHexString(((Object)Thread.currentThread()).hashCode())) + .append(", name ") + .append(Thread.currentThread().getName()); } catch (Exception ex) { getLogger().log(ex); } |