From c04a11e3adb101886ee224907ef6f9fbf00633ff Mon Sep 17 00:00:00 2001 From: yangyakun Date: Fri, 4 Aug 2023 14:26:40 +0800 Subject: [PATCH] [bugfix] [file not exit] --- .../com/mogo/och/common/module/debug/DebugDataDispatch.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt b/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt index fcf51b39bf..16530be879 100644 --- a/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt +++ b/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt @@ -74,10 +74,10 @@ object DebugDataDispatch { fun getLocaitonByLog(path:String) { ThreadUtils.getIoPool().execute { - val inputStream = FileInputStream(path) - val reader = BufferedReader(InputStreamReader(inputStream)) - var line: String? = "" try { + val inputStream = FileInputStream(path) + val reader = BufferedReader(InputStreamReader(inputStream)) + var line: String? = "" while (reader.readLine().also { line = it } != null) { val list = GsonUtils.fromJson( line.toString(),