File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/main/kotlin/com/coder/toolbox Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -398,11 +398,15 @@ class CoderRemoteProvider(
398
398
context.secrets.lastDeploymentURL = client.url.toString()
399
399
context.secrets.lastToken = client.token ? : " "
400
400
context.secrets.storeTokenFor(client.url, context.secrets.lastToken)
401
+ context.logger.info(" Deployment URL and token were stored and will be available for automatic connection" )
401
402
this .client = client
402
403
pollJob?.cancel()
404
+ context.logger.info(" Previous poll job was canceled" )
403
405
environments.showLoadingMessage()
404
406
coderHeaderPage.setTitle(context.i18n.pnotr(client.url.toString()))
407
+ context.logger.info(" Displaying ${client.url} in the UI" )
405
408
pollJob = poll(client, cli)
409
+ context.logger.info(" Workspace poller job created with reference $pollJob " )
406
410
context.envPageManager.showPluginEnvironmentsPage()
407
411
}
408
412
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ class ConnectStep(
76
76
signInJob?.cancel()
77
77
signInJob = context.cs.launch(CoroutineName (" Http and CLI Setup" )) {
78
78
try {
79
+ context.logger.info(" Setting up the HTTP client..." )
79
80
val client = CoderRestClient (
80
81
context,
81
82
CoderCliSetupContext .url!! ,
@@ -104,6 +105,7 @@ class ConnectStep(
104
105
yield ()
105
106
CoderCliSetupContext .reset()
106
107
CoderCliSetupWizardState .goToFirstStep()
108
+ context.logger.info(" Connection setup done, initializing the workspace poller..." )
107
109
onConnect(client, cli)
108
110
} catch (ex: CancellationException ) {
109
111
if (ex.message != USER_HIT_THE_BACK_BUTTON ) {
@@ -130,6 +132,7 @@ class ConnectStep(
130
132
131
133
override fun onBack () {
132
134
try {
135
+ context.logger.info(" Back button was pressed, cancelling in-progress connection setup..." )
133
136
signInJob?.cancel(CancellationException (USER_HIT_THE_BACK_BUTTON ))
134
137
} finally {
135
138
if (shouldAutoLogin.value) {
You can’t perform that action at this time.
0 commit comments