Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Report unique ids when not on GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Loring committed Apr 26, 2016
1 parent 442e1bd commit 5573e84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/debuglet.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Debuglet.prototype.start = function() {
if (process.env.GAE_MINOR_VERSION) {
id = 'GAE-' + process.env.GAE_MINOR_VERSION;
}
scanner.scan(!!id, that.config_.workingDirectory,
scanner.scan(!id, that.config_.workingDirectory,
function(err, fileStats, hash) {
if (err) {
that.logger_.error('Error scanning the filesystem.', err);
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module.exports.runTest = function runTest() {
var debuglet = agent.private_;
assert.ok(debuglet.debugletApi_, 'debuglet api is active');
var api = debuglet.debugletApi_;
assert.ok(api.uid_, 'debuglet provided unique id');
assert.ok(api.debuggeeId_, 'debuglet has registered');

var debuggee = api.debuggeeId_;
Expand Down Expand Up @@ -194,6 +195,8 @@ module.exports.runTest = function runTest() {
console.error(e);
});
});
}).catch(function(e) {
console.error(e);
});
};

Expand Down

0 comments on commit 5573e84

Please sign in to comment.