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

Commit 5573e84

Browse files
author
Matt Loring
committed
Report unique ids when not on GCP
1 parent 442e1bd commit 5573e84

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/debuglet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Debuglet.prototype.start = function() {
9595
if (process.env.GAE_MINOR_VERSION) {
9696
id = 'GAE-' + process.env.GAE_MINOR_VERSION;
9797
}
98-
scanner.scan(!!id, that.config_.workingDirectory,
98+
scanner.scan(!id, that.config_.workingDirectory,
9999
function(err, fileStats, hash) {
100100
if (err) {
101101
that.logger_.error('Error scanning the filesystem.', err);

test/e2e/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ module.exports.runTest = function runTest() {
6060
var debuglet = agent.private_;
6161
assert.ok(debuglet.debugletApi_, 'debuglet api is active');
6262
var api = debuglet.debugletApi_;
63+
assert.ok(api.uid_, 'debuglet provided unique id');
6364
assert.ok(api.debuggeeId_, 'debuglet has registered');
6465

6566
var debuggee = api.debuggeeId_;
@@ -194,6 +195,8 @@ module.exports.runTest = function runTest() {
194195
console.error(e);
195196
});
196197
});
198+
}).catch(function(e) {
199+
console.error(e);
197200
});
198201
};
199202

0 commit comments

Comments
 (0)