mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-11 08:48:06 +01:00
cleanup debug stack printing
This commit is contained in:
parent
564b682e64
commit
59d01dc6a2
1 changed files with 4 additions and 7 deletions
|
@ -111,13 +111,10 @@ public class DbgUtils {
|
||||||
|
|
||||||
public static void printStack( StackTraceElement[] trace )
|
public static void printStack( StackTraceElement[] trace )
|
||||||
{
|
{
|
||||||
if ( s_doLog ) {
|
if ( s_doLog && null != trace ) {
|
||||||
if ( null == trace ) {
|
// 2: skip printStack etc.
|
||||||
DbgUtils.logf( "printStack(): null trace" );
|
for ( int ii = 2; ii < trace.length; ++ii ) {
|
||||||
} else {
|
DbgUtils.logf( "ste %d: %s", ii, trace[ii].toString() );
|
||||||
for ( int ii = 0; ii < trace.length; ++ii ) {
|
|
||||||
DbgUtils.logf( "ste %d: %s", ii, trace[ii].toString() );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue