Skip to content

Commit c7d2af0

Browse files
committed
fix-update-loop-in-backend-info-holder
1 parent a46cf8d commit c7d2af0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ide-common/src/main/kotlin/org/digma/intellij/plugin/analytics/BackendInfoHolder.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,11 @@ class BackendInfoHolder(val project: Project) : DisposableAdaptor {
136136
try {
137137
updateImpl()
138138
} catch (e: Throwable) {
139+
Log.log(logger::trace, "update failed trying again in 5 seconds")
139140
//if update fails run another try after 2 seconds. maybe it was a momentary error from AnalyticsService.
140141
// if that will not succeed there will be another periodic update soon
141142
disposingOneShotDelayedTask("BackendInfoHolder.update-fallack", 5.seconds.inWholeMilliseconds) {
143+
Log.log(logger::trace, "calling updateImpl after 5 seconds delay")
142144
updateImpl()
143145
}
144146
}

0 commit comments

Comments
 (0)