Skip to content

Commit dfbfda1

Browse files
committed
Updated log for local tunnel status
1 parent b7e4091 commit dfbfda1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

setup-local/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ class BinaryControl {
12751275
if (!error) {
12761276
const outputParsed = JSON.parse(output);
12771277
if (outputParsed.state === LOCAL_BINARY_TRIGGER.START.CONNECTED) {
1278-
core.info(`Local tunnel status: ${outputParsed.message}`);
1278+
core.info(`Local tunnel status: ${JSON.stringify(outputParsed.message)}`);
12791279
return;
12801280
}
12811281

setup-local/src/binaryControl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class BinaryControl {
210210
if (!error) {
211211
const outputParsed = JSON.parse(output);
212212
if (outputParsed.state === LOCAL_BINARY_TRIGGER.START.CONNECTED) {
213-
core.info(`Local tunnel status: ${outputParsed.message}`);
213+
core.info(`Local tunnel status: ${JSON.stringify(outputParsed.message)}`);
214214
return;
215215
}
216216

setup-local/test/binaryControl.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ describe('Binary Control Operations', () => {
473473
await binaryControl.startBinary();
474474
sinon.assert.calledWith(binaryControl._triggerBinary, LOCAL_TESTING.START);
475475
sinon.assert.calledWith(core.info, 'Starting local tunnel with local-identifier=someIdentifier in daemon mode...');
476-
sinon.assert.calledWith(core.info, 'Local tunnel status: some message');
476+
sinon.assert.calledWith(core.info, 'Local tunnel status: "some message"');
477477
});
478478

479479
it("Starts the local tunnel successfully (without local identifier) and gets connected if the response state is 'connected'", async () => {
@@ -491,7 +491,7 @@ describe('Binary Control Operations', () => {
491491
sinon.stub(binaryControl, '_triggerBinary').returns(response);
492492
await binaryControl.startBinary();
493493
sinon.assert.calledWith(core.info, 'Starting local tunnel in daemon mode...');
494-
sinon.assert.calledWith(core.info, 'Local tunnel status: some message');
494+
sinon.assert.calledWith(core.info, 'Local tunnel status: "some message"');
495495
});
496496

497497
it("Fails and doesn't connect the local tunnel if the response state is 'disconnected' after each available tries", async () => {

0 commit comments

Comments
 (0)