1
0
mirror of https://github.com/etesync/android synced 2024-11-25 17:38:13 +00:00

Logs: show which contact/event/task is being prepared for upload

This commit is contained in:
Ricki Hirner 2016-05-23 14:28:27 +02:00
parent 9886507b7d
commit fd1f59d124
6 changed files with 7 additions and 4 deletions

View File

@ -75,8 +75,8 @@ public class SSLSocketFactoryCompat extends SSLSocketFactory {
"TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA",
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA");
List<String> availableCiphers = Arrays.asList(socket.getSupportedCipherSuites());
App.log.fine("Available cipher suites: " + TextUtils.join(", ", availableCiphers));
App.log.fine("Cipher suites enabled by default: " + TextUtils.join(", ", socket.getEnabledCipherSuites()));
App.log.info("Available cipher suites: " + TextUtils.join(", ", availableCiphers));
App.log.info("Cipher suites enabled by default: " + TextUtils.join(", ", socket.getEnabledCipherSuites()));
// take all allowed ciphers that are available and put them into preferredCiphers
HashSet<String> preferredCiphers = new HashSet<>(allowedCiphers);

View File

@ -96,6 +96,7 @@ public class CalendarSyncManager extends SyncManager {
@Override
protected RequestBody prepareUpload(LocalResource resource) throws IOException, CalendarStorageException {
LocalEvent local = (LocalEvent)resource;
App.log.log(Level.FINE, "Preparing upload of event " + local.getFileName(), new Object[] { local.getEvent() });
return RequestBody.create(
DavCalendar.MIME_ICALENDAR,
local.getEvent().toStream().toByteArray()

View File

@ -130,6 +130,7 @@ public class ContactsSyncManager extends SyncManager {
@Override
protected RequestBody prepareUpload(LocalResource resource) throws IOException, ContactsStorageException {
LocalContact local = (LocalContact)resource;
App.log.log(Level.FINE, "Preparing upload of contact " + local.getFileName(), new Object[] { local.getContact() });
return RequestBody.create(
hasVCard4 ? DavAddressBook.MIME_VCARD4 : DavAddressBook.MIME_VCARD3_UTF8,
local.getContact().toStream(hasVCard4 ? VCardVersion.V4_0 : VCardVersion.V3_0).toByteArray()

View File

@ -90,6 +90,7 @@ public class TasksSyncManager extends SyncManager {
@Override
protected RequestBody prepareUpload(LocalResource resource) throws IOException, CalendarStorageException {
LocalTask local = (LocalTask)resource;
App.log.log(Level.FINE, "Preparing upload of task " + local.getFileName(), new Object[] { local.getTask() });
return RequestBody.create(
DavCalendar.MIME_ICALENDAR,
local.getTask().toStream().toByteArray()

@ -1 +1 @@
Subproject commit 7577fcaa02d83ea5fbeeefa35511b45f3285ce95
Subproject commit 34a0a838ed2116b8ee2b022749d710a4f3e6a04c

@ -1 +1 @@
Subproject commit fda39538a3407f2a6f6a208f06a4ef1dbc1bed40
Subproject commit 1f72dbbea94fb5a6e0a55530266f8b5331793022