wrap elapsed time logging in its own debug flag and turn off.

This commit is contained in:
Eric House 2012-12-14 18:23:33 -08:00
parent 8125c451cd
commit 646ec65d66
2 changed files with 3 additions and 2 deletions

View file

@ -194,7 +194,7 @@ public class ExpiringDelegate {
if ( null == m_runnable ) {
m_runnable = new Runnable() {
public void run() {
if ( XWApp.DEBUG ) {
if ( XWApp.DEBUG_EXP_TIMERS ) {
DbgUtils.logf( "ExpiringDelegate: timer fired"
+ " for %H", this );
}
@ -204,7 +204,7 @@ public class ExpiringDelegate {
m_back = null;
setBackground();
}
if ( XWApp.DEBUG ) {
if ( XWApp.DEBUG_EXP_TIMERS ) {
DbgUtils.logf( "ExpiringDelegate: invalidating"
+ " view %H", m_view );
}

View file

@ -35,6 +35,7 @@ public class XWApp extends Application {
public static final boolean REMATCH_SUPPORTED = false;
public static final boolean DEBUG = true; // DON'T SHIP THIS WAY
public static final boolean DEBUG_LOCKS = false && DEBUG;
public static final boolean DEBUG_EXP_TIMERS = false && DEBUG;
public static final String SMS_PUBLIC_HEADER = "-XW4";