From 5573e84fc59c74c225623685dc881a7816d2a7f6 Mon Sep 17 00:00:00 2001 From: Matt Loring Date: Tue, 26 Apr 2016 15:07:52 -0700 Subject: [PATCH] Report unique ids when not on GCP --- lib/debuglet.js | 2 +- test/e2e/test.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/debuglet.js b/lib/debuglet.js index 82fcdd97..a11a8a79 100644 --- a/lib/debuglet.js +++ b/lib/debuglet.js @@ -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); diff --git a/test/e2e/test.js b/test/e2e/test.js index 7339898c..7c7fd730 100644 --- a/test/e2e/test.js +++ b/test/e2e/test.js @@ -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_; @@ -194,6 +195,8 @@ module.exports.runTest = function runTest() { console.error(e); }); }); + }).catch(function(e) { + console.error(e); }); };