Skip to content

Commit 9243f38

Browse files
committed
Fix heartbeat error report message
1 parent 6adb26f commit 9243f38

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/heartbeat.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ export class HeartbeatManager extends Disposable {
144144
}, this.logger);
145145
} catch (e) {
146146
const suffix = wasClosed ? 'closed heartbeat' : 'heartbeat';
147-
e.message = `Failed to send ${suffix}, triggered by event: ${this.lastActivityEvent}: ${e.message}`;
147+
const originMsg = e.message;
148+
e.message = `Failed to send ${suffix}, triggered by event: ${this.lastActivityEvent}: ${originMsg}`;
148149
this.logger.error(e);
149-
e.message = `Failed to send ${suffix}: ${e.message}`;
150+
e.message = `Failed to send ${suffix}: ${originMsg}`;
150151
this.telemetry.sendTelemetryException(e, { workspaceId: this.workspaceId, instanceId: this.instanceId, userId: this.session.account.id });
151152
}
152153
}

src/remoteConnector.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export default class RemoteConnector extends Disposable {
144144
super();
145145

146146
const remoteConnectionInfo = getGitpodRemoteWindow(context);
147+
this.logger.info('RemoteConnector initializing, isRemote: ' + !!remoteConnectionInfo);
147148
if (remoteConnectionInfo) {
148149
this._register(vscode.commands.registerCommand('gitpod.api.autoTunnel', this.autoTunnelCommand, this));
149150

0 commit comments

Comments
 (0)