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);