Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 1cc8d0c

Browse files
author
jbooth1
committed
Removed some tracing and bumped version.
1 parent f978d7a commit 1cc8d0c

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

digexp-wcm-design/lib/wcm-authenticated-request.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var warnParallel = true;
1818
var httpGetHelper = function(options) {
1919
options.headers.Cookie = authCookie;
2020
var deferred = Q.defer(), body = '', doRequest = function(options) {
21-
debugLogger.trace('httpGetHelper:: options::', options);
21+
// debugLogger.trace('httpGetHelper:: options::', options);
2222
if (options.secure) {
2323
options.rejectUnauthorized = false;
2424
}
@@ -247,7 +247,7 @@ var maxLtpaAge = 1000 * 60 * 30; // 30 minutes
247247

248248
var authenticatedRequest = function(user, pass, options, postData) {
249249
var deferred = Q.defer(), authenticate = function(user, pass, options, postData) {
250-
debugLogger.trace('authenticatedRequest:: user::' + user + ' options::', options, ' postData::' + postData);
250+
// debugLogger.trace('authenticatedRequest:: user::' + user + ' options::', options, ' postData::' + postData);
251251
// sometimes the content HandlerPath might be part of the uri already if not add
252252
if (options.path.lastIndexOf(options.contentHandlerPath, 0) != 0)
253253
options.path = options.contentHandlerPath + options.path;
@@ -260,7 +260,7 @@ var authenticatedRequest = function(user, pass, options, postData) {
260260
getLTPAToken(user, pass, options, postData).then(function(data) {
261261
if (postData == undefined) {
262262
return httpGetHelper(options).then(function(data) {
263-
debugLogger.trace('Completed get for ', options.path);
263+
// debugLogger.trace('Completed get for ', options.path);
264264
checkEndRequest();
265265
deferred.resolve(data);
266266
}, function(err) {
@@ -276,7 +276,7 @@ var authenticatedRequest = function(user, pass, options, postData) {
276276
});
277277
} else {
278278
return httpPostHelper(options, postData).then(function(data) {
279-
debugLogger.trace('Completed post for ', options.path);
279+
// debugLogger.trace('Completed post for ', options.path);
280280
checkEndRequest();
281281
deferred.resolve(data);
282282
}, function(err) {
@@ -307,7 +307,7 @@ var authenticatedRequest = function(user, pass, options, postData) {
307307
} else {
308308
if (postData == undefined) {
309309
return httpGetHelper(options).then(function(data) {
310-
debugLogger.trace('Completed get for ', options.path);
310+
// debugLogger.trace('Completed get for ', options.path);
311311
checkEndRequest();
312312
deferred.resolve(data);
313313
}, function(err) {
@@ -323,7 +323,7 @@ var authenticatedRequest = function(user, pass, options, postData) {
323323
});
324324
} else {
325325
return httpPostHelper(options, postData).then(function(data) {
326-
debugLogger.trace('Completed post for ', options.path);
326+
// debugLogger.trace('Completed post for ', options.path);
327327
checkEndRequest();
328328
deferred.resolve(data);
329329
}, function(err) {
@@ -350,7 +350,7 @@ var authenticatedRequest = function(user, pass, options, postData) {
350350
// todo: do the JSON parse here, so each caller doesn't have to do it
351351
var getJson = function(uri) {
352352
var deferred = Q.defer(), authenticate = function(uri) {
353-
debugLogger.trace('getJson:: uri::' + uri);
353+
// debugLogger.trace('getJson:: uri::' + uri);
354354
var callOptions = {
355355
host : globalHost,
356356
port : globalPort,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "digexp-toolkit",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"devDependencies": {
55
"grunt": "latest",
66
"grunt-contrib-compress": "latest",

0 commit comments

Comments
 (0)