Skip to content

Commit 2ea4b80

Browse files
committed
Removed logs.
1 parent aaceeb3 commit 2ea4b80

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/main/kotlin/docker/DockerProxy.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ abstract class DockerProxy(configuration: Configuration) : MigrationStrategy(con
6565
fun sendDockerStatistics(block: Block, blockProducer: String, clusters: Map<String, Cluster<String>>) {
6666
val slot = block.slot
6767
val currentTime = System.currentTimeMillis()
68-
println("Containers length before remove: ${localContainers.size}")
6968
localContainers.entries.removeIf { (_, container) -> currentTime - container.updated >= 30_000 }
7069

7170
val mapped: List<DockerContainer> = localContainers.values.map { it.copy(id = networkMappings[it.id] ?: it.id) }
@@ -92,7 +91,6 @@ abstract class DockerProxy(configuration: Configuration) : MigrationStrategy(con
9291

9392
/** Starts a process of `docker stats` and keeps the [localStatistics] up to date. */
9493
private fun listenForDockerStatistics() {
95-
println("Started a docker stats process")
9694
val numberOfElements = (configuration.slotDuration / 1000).toInt()
9795
val json = Json {
9896
ignoreUnknownKeys = true
@@ -106,7 +104,6 @@ abstract class DockerProxy(configuration: Configuration) : MigrationStrategy(con
106104
val reader = process.inputStream.bufferedReader()
107105

108106
reader.readLines().forEach { line ->
109-
println(line)
110107
val stats = json.decodeFromString<DockerStatsModel>(line)
111108
val pids = stats.pids.toIntOrNull() ?: 0
112109
val cpuPercentage = stats.cpuPercentage.trim('%').toDoubleOrNull() ?: 0.0

0 commit comments

Comments
 (0)