Skip to content

Commit 261acbb

Browse files
committed
Remove debug code
1 parent 5fb0df3 commit 261acbb

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/main/kotlin/eu/openanalytics/shinyproxyoperator/Operator.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ class Operator(client: NamespacedKubernetesClient? = null,
157157
configMapListener = ResourceListener(sendChannel, this.client.inNamespace(namespace).configMaps())
158158
ingressController = IngressController(sendChannel, this.client, this.client.inNamespace(namespace).network().ingress())
159159
}
160-
161-
Timer().schedule(5000, 5000) {
162-
val num = (client as DefaultKubernetesClient).httpClient.connectionPool().connectionCount()
163-
val max = client.configuration.maxConcurrentRequests
164-
logger.warn { "Current number of connections: $num of $max" }
165-
}
166160
}
167161

168162
/**

src/main/kotlin/eu/openanalytics/shinyproxyoperator/controller/ShinyProxyController.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,6 @@ class ShinyProxyController(private val channel: Channel<ShinyProxyEvent>,
204204
return
205205
}
206206

207-
// Extra check, if this check is positive we have some bug, see #24986
208-
logger.warn(Throwable()) { "${shinyProxy.logPrefix(shinyProxyInstance)} Updating latest marker to ${latestInstance.hashOfSpec}, status: ${shinyProxy.status}" }
209-
210207
updateStatus(shinyProxy) {
211208
it.status.instances.forEach { inst -> inst.isLatestInstance = false }
212209
it.status.instances.first { inst -> inst.hashOfSpec == latestInstance.hashOfSpec }.isLatestInstance = true

0 commit comments

Comments
 (0)