Skip to content

Commit

Permalink
#29 added token to debug printout.
Browse files Browse the repository at this point in the history
  • Loading branch information
itayw committed Apr 10, 2014
1 parent 36dd5ad commit 749b981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 749b981

Please sign in to comment.