Commit 9151a2ca authored by zeroleak's avatar zeroleak
Browse files

debug complete whirlpool information on Logcat

parent eba2e896
......@@ -10,6 +10,7 @@ import android.os.Looper
import android.text.Editable
import android.text.InputType
import android.text.TextWatcher
import android.util.Log
import android.view.Gravity
import android.view.View
import android.view.WindowManager
......@@ -693,6 +694,8 @@ class SettingsDetailsFragment(private val key: String?) : PreferenceFragmentComp
.setCancelable(false)
.setPositiveButton(R.string.ok) { dialog, whichButton -> dialog.dismiss() }
.show()
LogUtil.debugLarge("Settings", "# INDEXES DEBUG #\n"+builder.toString());
}
private fun doAddressCalc() {
......@@ -823,6 +826,8 @@ class SettingsDetailsFragment(private val key: String?) : PreferenceFragmentComp
.setCancelable(false)
.setPositiveButton(R.string.ok) { dialog, whichButton -> dialog.dismiss() }
.show()
LogUtil.debugLarge("Settings", "# WHIRLPOOL DEBUG #\n"+builder.toString());
}
private fun doBroadcastHex() {
......
......@@ -62,4 +62,18 @@ public class LogUtil {
Log.d("LogUtil", "Debug logs enabled");
}
/**
* Debug large strings to avoid log truncation.
* @param tag
* @param content
*/
public static void debugLarge(String tag, String content) {
if (content.length() > 4000) {
Log.d(tag, content.substring(0, 4000));
debugLarge(tag, content.substring(4000));
} else {
Log.d(tag, content);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment