public static void d(final String msg) {
        if (SETTING_DO_LOGGING[LogLevel.DEBUG.ordinal()]) {
            final String message = adjustMessage(msg, LogLevel.DEBUG);
            android.util.Log.d(TAG, message);
            if (logFileWriter != null) {
                logToFile("D", message, null);
            }
        }
    }
Save a copy of the debug flag from the settings for performance reasons.
main/src/main/java/cgeo/geocaching/utils/Log.java