Skip to content

Commit

Permalink
feat(servers): make api key visible in development
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Apr 1, 2016
1 parent c903c3b commit a5b5b47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var sendRequest = exports.sendRequest = function(region, url, cb, formatterCb) {
data += d;
})
.on('end', function() {
console.logHttp(options.method, safeUrl, res.statusCode);
console.logHttp(options.method, process.env.NODE_ENV == "development" ? url : safeUrl, res.statusCode);
if (res.statusCode == 200) {
cb(formatterCb ? formatterCb(data) : data, false, res.statusCode);
}
Expand All @@ -71,7 +71,7 @@ var sendRequest = exports.sendRequest = function(region, url, cb, formatterCb) {
});

req.on('error', function(e) {
console.logHttp(options.method, safeUrl, e.statusCode, e);
console.logHttp(options.method, process.env.NODE_ENV == "development" ? url : safeUrl, e.statusCode, e);
cb(false, e, e.statusCode);
});

Expand Down

0 comments on commit a5b5b47

Please sign in to comment.