Bug 742109 - Make Android Sync write to Android log with single tag "FxSync". r=rnewman,liuche

This commit is contained in:
Nick Alexander
2012-06-12 12:12:43 -07:00
parent 3fd6c80f90
commit 4856f3dcc7
33 changed files with 665 additions and 320 deletions

View File

@@ -4,12 +4,12 @@
package org.mozilla.gecko.sync.synchronizer;
import org.mozilla.gecko.sync.Logger;
import org.mozilla.gecko.sync.SynchronizerConfiguration;
import org.mozilla.gecko.sync.repositories.Repository;
import org.mozilla.gecko.sync.repositories.RepositorySessionBundle;
import android.content.Context;
import android.util.Log;
/**
* I perform a sync.
@@ -41,15 +41,15 @@ public class Synchronizer implements SynchronizerSessionDelegate {
@Override
public void onSynchronized(SynchronizerSession synchronizerSession) {
Log.d(LOG_TAG, "Got onSynchronized.");
Log.d(LOG_TAG, "Notifying SynchronizerDelegate.");
Logger.debug(LOG_TAG, "Got onSynchronized.");
Logger.debug(LOG_TAG, "Notifying SynchronizerDelegate.");
this.synchronizerDelegate.onSynchronized(synchronizerSession.getSynchronizer());
}
@Override
public void onSynchronizeSkipped(SynchronizerSession synchronizerSession) {
Log.d(LOG_TAG, "Got onSynchronizeSkipped.");
Log.d(LOG_TAG, "Notifying SynchronizerDelegate as if on success.");
Logger.debug(LOG_TAG, "Got onSynchronizeSkipped.");
Logger.debug(LOG_TAG, "Notifying SynchronizerDelegate as if on success.");
this.synchronizerDelegate.onSynchronized(synchronizerSession.getSynchronizer());
}