diff --git a/lib/gitana.js b/lib/gitana.js index 6f4d3b0..fba072b 100644 --- a/lib/gitana.js +++ b/lib/gitana.js @@ -2577,6 +2577,7 @@ if (typeof JSON !== 'object') { } // ok + console.log("GITANA SUCCESS " + xhr.status + " " + method + " " + url + " " + JSON.stringify(data)); success(responseObject, xhr); } else if (xhr.status >= 400 && xhr.status !== 0) @@ -2587,6 +2588,7 @@ if (typeof JSON !== 'object') { } // everything what is 400 and above is a failure code + console.log("GITANA FAILURE " + xhr.status + " " + method + " " + url + " " + JSON.stringify(data)); failure(responseObject, xhr); } else if (xhr.status >= 300 && xhr.status <= 303) @@ -2598,6 +2600,7 @@ if (typeof JSON !== 'object') { // some kind of redirect, probably to a login server // indicates missing access token? + console.log("GITANA FAILURE " + xhr.status + " " + method + " " + url + " " + JSON.stringify(data)); failure(responseObject, xhr); } }