Merge pull request #1621 from deltachat/add-log-warning

prefix log by a hint about sensitive information
This commit is contained in:
bjoern 2020-09-12 16:09:24 +02:00 committed by GitHub
commit 152ea7c06b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,8 @@ public class LogViewFragment extends Fragment {
Context context = weakContext.get(); Context context = weakContext.get();
if (context == null) return null; if (context == null) return null;
return buildDescription(context) + "\n" + new Scrubber().scrub(grabLogcat()); return "**This log may contain sensitive information. If you want to post it publicly you may examine and edit it beforehand.**\n\n" +
buildDescription(context) + "\n" + new Scrubber().scrub(grabLogcat());
} }
@Override @Override