1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-31 07:32:59 +00:00

Clearer logging preparatory to implementing file synchronisation

This commit is contained in:
Jeremy Ruston
2013-03-24 12:53:09 +00:00
parent 7df3d48451
commit 70def07d63
3 changed files with 7 additions and 8 deletions

View File

@@ -124,9 +124,7 @@ var Command = function(params,commander,callback) {
if(fields["revision"]) {
delete fields["revision"];
}
var fileInfo = $tw.boot.files[title],
filepath = fileInfo ? fileInfo.filepath : null;
console.log("PUT tiddler",title,filepath,fields)
console.log("PUT tiddler",title)
state.wiki.addTiddler(new $tw.Tiddler(fields,{title: title}));
var changeCount = state.wiki.getChangeCount(title).toString();
response.writeHead(204, "OK",{
@@ -140,9 +138,7 @@ console.log("PUT tiddler",title,filepath,fields)
path: /^\/bags\/default\/tiddlers\/(.+)$/,
handler: function(request,response,state) {
var title = decodeURIComponent(state.params[0]);
var fileInfo = $tw.boot.files[title],
filepath = fileInfo ? fileInfo.filepath : null;
console.log("DELETE tiddler",title,filepath)
console.log("DELETE tiddler",title)
state.wiki.deleteTiddler(title);
response.writeHead(204, "OK");
response.end();