Skip to content

Commit e87866b

Browse files
author
Ven
committed
opt: 优化步骤日志输出
1 parent 4709faf commit e87866b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

assists/src/main/java/com/ven/assist/step/StepManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.ven.assist.step
22

3-
import com.blankj.utilcode.util.LogUtils
3+
import android.util.Log
44
import com.ven.assist.Assists
55

66
/**
@@ -32,7 +32,7 @@ object StepManager {
3232
*/
3333
fun <T : StepImpl> execute(stepImpl: Class<T>, step: Int, delay: Long = Assists.Config.defaultStepDelay, data: Any? = null, isBegin: Boolean = false) {
3434
if (isStop && !isBegin) return
35-
LogUtils.d("execute->${stepImpl.name}:$step", "delay:$delay")
35+
Log.d(Assists.Config.logTag, "execute->${stepImpl.simpleName}:$step-delay:$delay")
3636
stepCollector[stepImpl.name] ?: register(stepImpl)
3737
stepCollector[stepImpl.name]?.get(step)?.let {
3838
it.data = data

assists/src/main/java/com/ven/assist/step/StepOperator.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.ven.assist.step
22

33
import android.os.CountDownTimer
4+
import android.util.Log
45
import com.blankj.utilcode.util.LogUtils
56
import com.blankj.utilcode.util.ThreadUtils
67
import com.ven.assist.Assists
@@ -22,7 +23,7 @@ class StepOperator(
2223
Assists.ListenerManager.stepListener.forEach { it.onStepStop() }
2324
return
2425
}
25-
LogUtils.d("step->$clazzName:$step", "delay:$delay")
26+
Log.d(Assists.Config.logTag,"step->$clazzName:$step-delay:$delay")
2627

2728
next?.let {
2829
if (loopDuration == 0L) {

0 commit comments

Comments
 (0)