Skip to content

Commit

Permalink
feat: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
Robotxm committed Jun 29, 2023
1 parent 793628e commit 2cddf34
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.moefactory.bettermiuiexpress.base

import com.highcapable.yukihookapi.hook.log.loggerE
import kotlinx.coroutines.flow.flow

@Suppress("FunctionName")
Expand All @@ -11,7 +12,7 @@ inline fun <RequestType> NetworkBoundResource(
val result = fetch()
Result.success(result)
} catch (throwable: Throwable) {
throwable.printStackTrace()
loggerE(e = throwable)
onFetchFailed(throwable)
Result.failure(throwable)
}
Expand Down

0 comments on commit 2cddf34

Please sign in to comment.