mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-16 10:46:49 +01:00
feat(YouTube - Debug): Logging of layout proto buffer strings (#456)
This commit is contained in:
parent
163b77828f
commit
c12f4a3871
@ -342,9 +342,10 @@ public final class LithoFilterPatch {
|
|||||||
builder.append(identifier);
|
builder.append(identifier);
|
||||||
builder.append(" Path: ");
|
builder.append(" Path: ");
|
||||||
builder.append(path);
|
builder.append(path);
|
||||||
// TODO: allow turning on/off buffer logging with a debug setting?
|
if (SettingsEnum.DEBUG_PROTOBUFFER.getBoolean()) {
|
||||||
builder.append(" BufferStrings: ");
|
builder.append(" BufferStrings: ");
|
||||||
findAsciiStrings(builder, protoBuffer);
|
findAsciiStrings(builder, protoBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
@ -191,6 +191,7 @@ public enum SettingsEnum {
|
|||||||
// Debugging
|
// Debugging
|
||||||
DEBUG("revanced_debug", BOOLEAN, FALSE),
|
DEBUG("revanced_debug", BOOLEAN, FALSE),
|
||||||
DEBUG_STACKTRACE("revanced_debug_stacktrace", BOOLEAN, FALSE, parents(DEBUG)),
|
DEBUG_STACKTRACE("revanced_debug_stacktrace", BOOLEAN, FALSE, parents(DEBUG)),
|
||||||
|
DEBUG_PROTOBUFFER("revanced_debug_protobuffer", BOOLEAN, FALSE, parents(DEBUG)),
|
||||||
DEBUG_TOAST_ON_ERROR("revanced_debug_toast_on_error", BOOLEAN, TRUE, "revanced_debug_toast_on_error_user_dialog_message"),
|
DEBUG_TOAST_ON_ERROR("revanced_debug_toast_on_error", BOOLEAN, TRUE, "revanced_debug_toast_on_error_user_dialog_message"),
|
||||||
|
|
||||||
// ReturnYoutubeDislike
|
// ReturnYoutubeDislike
|
||||||
|
Loading…
x
Reference in New Issue
Block a user