From 749b981e06e0d0627c0ad9664d0bd8d4b45e651d Mon Sep 17 00:00:00 2001 From: itayw Date: Thu, 10 Apr 2014 15:52:39 +0300 Subject: [PATCH] #29 added token to debug printout. --- lib/common/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/api.js b/lib/common/api.js index 261902b..e8d0e94 100644 --- a/lib/common/api.js +++ b/lib/common/api.js @@ -136,7 +136,7 @@ api.fetch = function (endpoint, objOptions, callback) { */ api.getJSON = function (options, objOptions, callback) { var prot = options.secure ? https : http; - joolaio.logger.silly('[api] Fetching JSON from ' + options.host + ':' + options.port + options.path + '@' + joolaio.APITOKEN); + joolaio.logger.silly('[api] Fetching JSON from ' + options.host + ':' + options.port + options.path + '@' + (joolaio.APITOKEN || joolaio.TOKEN)); if (!joolaio.io || joolaio.options.ajax || options.ajax) { var qs = querystring.stringify(objOptions);