Skip to content

Commit

Permalink
[server] more logging to track reconnection cause
Browse files Browse the repository at this point in the history
  • Loading branch information
akosyakov committed Jun 14, 2021
1 parent 3363f3b commit c0f308c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/gitpod/node/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ async function main(): Promise<void> {
dispose();
}, ProtocolConstants.ReconnectionGraceTime);
const shortGraceTimeReconnection = new RunOnceScheduler(() => {
logService.info(`[${token}] Management connection expired after ${ProtocolConstants.ReconnectionGraceTime}ms (short grace).`);
logService.info(`[${token}] Management connection expired after ${ProtocolConstants.ReconnectionShortGraceTime}ms (short grace).`);
dispose();
}, ProtocolConstants.ReconnectionShortGraceTime);
client.management = { protocol, graceTimeReconnection, shortGraceTimeReconnection };
Expand Down Expand Up @@ -981,6 +981,7 @@ async function main(): Promise<void> {
socket.end();
extensionHost.kill();
client.extensionHost = undefined;
logService.info(`[${token}] Extension host is disconnected.`);
}

extensionHost.on('error', err => {
Expand Down

0 comments on commit c0f308c

Please sign in to comment.