Skip to content

Commit

Permalink
log the time blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
droolingsheep committed Mar 10, 2021
1 parent af33e57 commit b84f750
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal class ResourceHandlerInvoker(
val response = responseSingle.blockingGet()
val timeBlocked = SystemClock.elapsedRealtime() - startTime
if (timeBlocked > TimeUnit.MILLISECONDS.convert(1, TimeUnit.SECONDS)) {
Timber.e("GG Thread blocked on handler response from ${resourceHandler.javaClass.name} for more than 1 second!")
Timber.e("GG Thread blocked on handler response from ${resourceHandler.javaClass.name} for $timeBlocked milliseconds!")
}
return response
}
Expand Down

0 comments on commit b84f750

Please sign in to comment.