Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect lssh logs in connection window #105

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

jeanp413
Copy link
Member

@jeanp413 jeanp413 commented Jul 4, 2024

Description

Collect lssh logs in connection window

/hold

@@ -23,6 +23,7 @@ interface IFile {

export class ExportLogsCommand implements Command {
readonly id = 'gitpod.exportLogs';
static latestLSSHHost: string | undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeanp413 Will it make sense to persist last connection state in other place than memory? I tried locally:

  • Is connected to workspace -> has lssh logs
  • Window show disconnected and attempt to retry -> not able to collect logs
  • Reload window -> no last time's lssh logs

I'm not sure where in connection window means other than the second point above. But it's not working

Copy link
Member Author

@jeanp413 jeanp413 Jul 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it only applies when it's a normal window (not remote) and the user is trying to connect to a workspace and it fails before redirecting to the remote window

Window show disconnected and attempt to retry

that sounds like a remote window so this change does not apply to it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Window show disconnected and attempt to retry -> not able to collect logs

I thought this case is used to happen to users side as well, but as this PR has its own scope, let's publish it

@mustard-mh mustard-mh merged commit 2f9e676 into master Jul 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants