1
0
mirror of https://github.com/etesync/android synced 2025-01-11 08:10:58 +00:00

Don't print content of added/changed contacts and groups.

Before this change we were printing added/changed contacts and groups
to the adb log. This is not a big deal on its own, but now since we
have ACRA, we share these logs on crash (if user approves) so it's
better to remove personal information to make sure it's not being
accidentally shared.
This commit is contained in:
Tom Hacohen 2018-01-25 10:51:50 +00:00
parent 730e5c0119
commit a28b46f8f9

View File

@ -185,7 +185,7 @@ public class ContactsSyncManager extends SyncManager {
String uuid = newData.uid; String uuid = newData.uid;
// update local contact, if it exists // update local contact, if it exists
if (local != null) { if (local != null) {
App.log.log(Level.INFO, "Updating " + uuid + " in local address book", newData); App.log.log(Level.INFO, "Updating " + uuid + " in local address book");
if (local instanceof LocalGroup && newData.group) { if (local instanceof LocalGroup && newData.group) {
// update group // update group
@ -214,13 +214,13 @@ public class ContactsSyncManager extends SyncManager {
if (local == null) { if (local == null) {
if (newData.group) { if (newData.group) {
App.log.log(Level.INFO, "Creating local group", newData); App.log.log(Level.INFO, "Creating local group", newData.uid);
LocalGroup group = new LocalGroup(localAddressBook(), newData, uuid, uuid); LocalGroup group = new LocalGroup(localAddressBook(), newData, uuid, uuid);
group.create(); group.create();
local = group; local = group;
} else { } else {
App.log.log(Level.INFO, "Creating local contact", newData); App.log.log(Level.INFO, "Creating local contact", newData.uid);
LocalContact contact = new LocalContact(localAddressBook(), newData, uuid, uuid); LocalContact contact = new LocalContact(localAddressBook(), newData, uuid, uuid);
contact.create(); contact.create();