mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-24 03:35:49 +01:00
feat(YouTube - Debug): Logging of layout proto buffer strings (#456)
This commit is contained in:
parent
8517e8a149
commit
769a2006ce
@ -342,9 +342,10 @@ public final class LithoFilterPatch {
|
||||
builder.append(identifier);
|
||||
builder.append(" Path: ");
|
||||
builder.append(path);
|
||||
// TODO: allow turning on/off buffer logging with a debug setting?
|
||||
builder.append(" BufferStrings: ");
|
||||
findAsciiStrings(builder, protoBuffer);
|
||||
if (SettingsEnum.DEBUG_PROTOBUFFER.getBoolean()) {
|
||||
builder.append(" BufferStrings: ");
|
||||
findAsciiStrings(builder, protoBuffer);
|
||||
}
|
||||
|
||||
return builder.toString();
|
||||
}
|
||||
|
@ -191,6 +191,7 @@ public enum SettingsEnum {
|
||||
// Debugging
|
||||
DEBUG("revanced_debug", BOOLEAN, FALSE),
|
||||
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"),
|
||||
|
||||
// ReturnYoutubeDislike
|
||||
|
Loading…
Reference in New Issue
Block a user