Commit df3cca83 authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil Team

database.js: Better log output on checkProcess

parent 03c50995
...@@ -183,7 +183,6 @@ Database.prototype = { ...@@ -183,7 +183,6 @@ Database.prototype = {
* check if a server process is done(recursive) * check if a server process is done(recursive)
* */ * */
waitProcess: function (processId, interval, callback){ waitProcess: function (processId, interval, callback){
console.log("... " +processId)
var self=this; var self=this;
var url = self.db_address + "default/checkProcess?processId="+processId; var url = self.db_address + "default/checkProcess?processId="+processId;
...@@ -197,6 +196,7 @@ Database.prototype = { ...@@ -197,6 +196,7 @@ Database.prototype = {
xhrFields: {withCredentials: true}, xhrFields: {withCredentials: true},
success: function (result) { success: function (result) {
self.connected = true; self.connected = true;
console.log(result);
result = jQuery.parseJSON(result) result = jQuery.parseJSON(result)
if (result.status == "COMPLETED"){ if (result.status == "COMPLETED"){
callback(result.data); callback(result.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment