mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 16:47:14 -04:00
Filter out Session ID on new log pipe
This commit is contained in:
parent
ab8c1e74e4
commit
9e4d4de70d
@ -4,11 +4,18 @@ import java.util.Map;
|
||||
|
||||
public abstract class LoggableActivity extends BaseActivity {
|
||||
public Map<String, String> jreReleaseList;
|
||||
public boolean filteredSessionID = false;
|
||||
public void appendToLog(String text) {
|
||||
appendToLog(text, true);
|
||||
}
|
||||
|
||||
public void appendlnToLog(String text) {
|
||||
// Filter out Session ID here
|
||||
if (!filteredSessionID && (index = text.indexOf("(Session ID is ")) != -1) {
|
||||
text = text.substring(0, index) + "(Session ID is <censored>)";
|
||||
filteredSessionID = true;
|
||||
}
|
||||
|
||||
appendlnToLog(text, true);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user