Skip to content

Commit d12ce18

Browse files
authored
Merge pull request #2417 from digma-ai/auth-manager-debug-on-development-instance
enable auth debug in development
2 parents bc73756 + 292f21e commit d12ce18

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,7 @@ tasks {
300300
"org.digma.plugin.enable.devtools" to "true",
301301
"kotlinx.coroutines.debug" to "",
302302
"org.digma.plugin.report.all.errors" to "true",
303-
304-
//to debug AuthManager
305-
//"org.digma.plugin.auth.debug" to "true",
303+
"org.digma.plugin.auth.debug" to "true",
306304

307305
// "idea.ProcessCanceledException" to "disabled"
308306

ide-common/src/main/kotlin/org/digma/intellij/plugin/auth/AuthManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ class AuthManager(private val cs: CoroutineScope) : Disposable {
527527

528528
val refreshSuccess = try {
529529
val loginHandler = LoginHandler.createLoginHandler(myAnalyticsProvider)
530-
loginHandler.refresh(account, credentials, "auto refresh job")
530+
loginHandler.refresh(account, credentials, "auto refresh job because credentials expire in $expireIn")
531531
} catch (e: Throwable) {
532532
false
533533
}

0 commit comments

Comments
 (0)