From a36f122278e85614f67cc1b80ea2ff1d06a5917a Mon Sep 17 00:00:00 2001 From: eugene Date: Mon, 6 Jan 2025 15:51:36 -0500 Subject: [PATCH] log commands at DEBUG --- tunnel/src/main/java/org/openziti/tunnel/Tunnel.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tunnel/src/main/java/org/openziti/tunnel/Tunnel.kt b/tunnel/src/main/java/org/openziti/tunnel/Tunnel.kt index 02705a5..12260cc 100644 --- a/tunnel/src/main/java/org/openziti/tunnel/Tunnel.kt +++ b/tunnel/src/main/java/org/openziti/tunnel/Tunnel.kt @@ -67,10 +67,10 @@ class Tunnel(app: Application, ): Runnable { inline fun processCmd(cmd: C): CompletableFuture = CompletableFuture().apply { val data = cmd.toJson() - Log.i(TAG, "cmd[${cmd.id}] = $data") + Log.d(TAG, "cmd[${cmd.id}] = $data") executeCommand(cmd.cmd.name, data, this) }.thenApply { - Log.i(TAG, "result[${cmd.id}] = $it") + Log.d(TAG, "result[${cmd.id}] = $it") if (!it.success) throw Exception(it.error) it.data } @@ -84,7 +84,7 @@ class Tunnel(app: Application, ): Runnable { try { EventsJson.decodeFromString(it) } catch (ex: Exception) { - Log.w("model", ex) + Log.w(TAG, ex) null } }.filterNotNull()