In general, try to use if(Log.isDebugModeEnabled(){ Log.d()} instead.