Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #26 from jfrumar/check-for-specific-debug-value
Browse files Browse the repository at this point in the history
Only activate debug mode if process.env.DEBUG contains "gp:api".
  • Loading branch information
dweinstein committed Feb 24, 2016
2 parents 75f90c9 + a20f8ac commit 969c92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var LoginError = require('./errors').LoginError;
var GooglePlay = (function GooglePlay(username, password, androidId, useCache, debug, requestsDefaultParams) {
// default for args:
androidId = androidId || null;
debug = (!!process.env.DEBUG) || debug === true;
debug = /gp:api/.test(process.env.DEBUG) || debug === true;

var USE_CACHE = (useCache === true);
var authToken;
Expand Down

0 comments on commit 969c92a

Please sign in to comment.