mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-29 12:59:56 +00:00
Syncer: Reduce logging intensity
This commit is contained in:
parent
a21f45b93a
commit
3b84088b27
@ -425,7 +425,7 @@ Syncer.prototype.processTaskQueue = function() {
|
|||||||
if((!this.syncadaptor.isReady || this.syncadaptor.isReady()) && this.numTasksInProgress === 0) {
|
if((!this.syncadaptor.isReady || this.syncadaptor.isReady()) && this.numTasksInProgress === 0) {
|
||||||
// Choose the next task to perform
|
// Choose the next task to perform
|
||||||
var task = this.chooseNextTask();
|
var task = this.chooseNextTask();
|
||||||
self.logger.log("Chosen next task " + task);
|
// self.logger.log("Chosen next task " + task);
|
||||||
// Perform the task if we had one
|
// Perform the task if we had one
|
||||||
if(typeof task === "object" && task !== null) {
|
if(typeof task === "object" && task !== null) {
|
||||||
this.numTasksInProgress += 1;
|
this.numTasksInProgress += 1;
|
||||||
@ -551,14 +551,14 @@ SaveTiddlerTask.prototype.run = function(callback) {
|
|||||||
revision: revision,
|
revision: revision,
|
||||||
timestampLastSaved: new Date()
|
timestampLastSaved: new Date()
|
||||||
};
|
};
|
||||||
self.syncer.logger.log("Updating tiddler info in SaveTiddlerTask.run for " + self.title + " " + JSON.stringify(self.syncer.tiddlerInfo[self.title]));
|
// self.syncer.logger.log("Updating tiddler info in SaveTiddlerTask.run for " + self.title + " " + JSON.stringify(self.syncer.tiddlerInfo[self.title]));
|
||||||
// Invoke the callback
|
// Invoke the callback
|
||||||
callback(null);
|
callback(null);
|
||||||
},{
|
},{
|
||||||
tiddlerInfo: self.syncer.tiddlerInfo[self.title]
|
tiddlerInfo: self.syncer.tiddlerInfo[self.title]
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.syncer.logger.log(" Not Dispatching 'save' task:",this.title,"tiddler does not exist");
|
// this.syncer.logger.log(" Not Dispatching 'save' task:",this.title,"tiddler does not exist");
|
||||||
$tw.utils.nextTick(callback(null));
|
$tw.utils.nextTick(callback(null));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -582,7 +582,7 @@ DeleteTiddlerTask.prototype.run = function(callback) {
|
|||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
// Remove the info stored about this tiddler
|
// Remove the info stored about this tiddler
|
||||||
self.syncer.logger.log("Deleting tiddler info in DeleteTiddlerTask.run for " + self.title);
|
// self.syncer.logger.log("Deleting tiddler info in DeleteTiddlerTask.run for " + self.title);
|
||||||
delete self.syncer.tiddlerInfo[self.title];
|
delete self.syncer.tiddlerInfo[self.title];
|
||||||
// Invoke the callback
|
// Invoke the callback
|
||||||
callback(null);
|
callback(null);
|
||||||
@ -659,7 +659,7 @@ SyncFromServerTask.prototype.run = function(callback) {
|
|||||||
} else if(this.syncer.syncadaptor.getSkinnyTiddlers) {
|
} else if(this.syncer.syncadaptor.getSkinnyTiddlers) {
|
||||||
this.syncer.logger.log("Retrieving skinny tiddler list");
|
this.syncer.logger.log("Retrieving skinny tiddler list");
|
||||||
this.syncer.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {
|
this.syncer.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {
|
||||||
self.syncer.logger.log("Retrieved skinny tiddler list");
|
// self.syncer.logger.log("Retrieved skinny tiddler list");
|
||||||
// Check for errors
|
// Check for errors
|
||||||
if(err) {
|
if(err) {
|
||||||
self.syncer.displayError($tw.language.getString("Error/RetrievingSkinny"),err);
|
self.syncer.displayError($tw.language.getString("Error/RetrievingSkinny"),err);
|
||||||
|
Loading…
Reference in New Issue
Block a user