From 6edf5415d0c65a0162235e07780c3f21fb1239ee Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Sun, 15 May 2022 13:10:00 +0200 Subject: [PATCH] reduce logging in webmap console --- .../src/main/kotlin/dev/adamko/kafkatorio/webmap/App.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/App.kt b/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/App.kt index 81cf098..889868f 100644 --- a/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/App.kt +++ b/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/App.kt @@ -67,18 +67,17 @@ class App( .filterIsInstance() .map { img -> val imgSrc = img.src.substringBeforeLast('?') - println("fetching $imgSrc") +// println("fetching $imgSrc") - var newImg : Image? = Image() + var newImg: Image? = Image() newImg!!.onload = { window.requestAnimationFrame { - println("image loaded ${newImg!!.src}") +// println("image loaded ${newImg!!.src}") img.setAttribute("dynamic-reload", "true") img.src = newImg!!.src newImg = null // try to encourage garbage collection - Unit } } newImg!!.src = imgSrc //+ "?t=${currentTimeMillis()}"