Add more logging around network changes.
This commit is contained in:
parent
aeb568bcf4
commit
1f57e1f366
2 changed files with 4 additions and 1 deletions
|
@ -396,6 +396,7 @@ public final class SettingsValues extends SignalStoreValues {
|
|||
}
|
||||
|
||||
public void setCensorshipCircumventionEnabled(boolean enabled) {
|
||||
Log.i(TAG, "Changing censorship circumvention state to: " + enabled, new Throwable());
|
||||
putInteger(CENSORSHIP_CIRCUMVENTION_ENABLED, enabled ? CensorshipCircumventionEnabled.ENABLED.serialize() : CensorshipCircumventionEnabled.DISABLED.serialize());
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,9 @@ final class LogSectionKeyPreferences implements LogSection {
|
|||
.append("Push Registered : ").append(SignalStore.account().isRegistered()).append("\n")
|
||||
.append("Unauthorized Received: ").append(TextSecurePreferences.isUnauthorizedRecieved(context)).append("\n")
|
||||
.append("self.isRegistered() : ").append(SignalStore.account().getAci() == null ? "false" : Recipient.self().isRegistered()).append("\n")
|
||||
.append("Thread Trimming : ").append(getThreadTrimmingString()).append("\n");
|
||||
.append("Thread Trimming : ").append(getThreadTrimmingString()).append("\n")
|
||||
.append("Censorship Setting : ").append(SignalStore.settings().getCensorshipCircumventionEnabled()).append("\n")
|
||||
.append("Network Reachable : ").append(SignalStore.misc().isServiceReachableWithoutCircumvention()).append(", last checked: ").append(SignalStore.misc().getLastCensorshipServiceReachabilityCheckTime()).append("\n");
|
||||
}
|
||||
|
||||
private static String getThreadTrimmingString() {
|
||||
|
|
Loading…
Add table
Reference in a new issue