perf: 移除工作流执行请求中的调试日志以减少输出

移除发送请求体及成功响应的日志记录,减少不必要的日志输出,提升应用性能。
This commit is contained in:
2026-03-28 10:30:13 +08:00
parent 2e0fa51a19
commit 08e090b333

View File

@@ -43,9 +43,6 @@ object HttpManager {
is Array<*> -> jsonBody.put("inputs", JSONArray(inputs)) is Array<*> -> jsonBody.put("inputs", JSONArray(inputs))
else -> jsonBody.put("inputs", inputs) else -> jsonBody.put("inputs", inputs)
} }
Log.d(TAG, "Request Body: $jsonBody")
val writer = OutputStreamWriter(connection.outputStream) val writer = OutputStreamWriter(connection.outputStream)
writer.write(jsonBody.toString()) writer.write(jsonBody.toString())
writer.flush() writer.flush()
@@ -56,7 +53,7 @@ object HttpManager {
val reader = connection.inputStream.bufferedReader() val reader = connection.inputStream.bufferedReader()
result = reader.readText() result = reader.readText()
reader.close() reader.close()
Log.i(TAG, "Workflow execute success: $result") // Log.i(TAG, "Workflow execute success: $result")
} else { } else {
val errorStream = connection.errorStream val errorStream = connection.errorStream
val errorMsg = errorStream?.bufferedReader()?.readText() ?: "Unknown error" val errorMsg = errorStream?.bufferedReader()?.readText() ?: "Unknown error"