[debugger] no need to compute text if debug logger is not enabled

GitOrigin-RevId: 4b5c1ff6c4fec130edc05b84968dd04eaaeeda57
This commit is contained in:
Egor Ushakov
2024-11-08 20:41:51 +00:00
committed by intellij-monorepo-bot
parent b32204d5c6
commit 2dd1692215
@@ -38,7 +38,9 @@ abstract class SuspendContextCommandImpl protected constructor(open val suspendC
}
invokeWithChecks(suspendContext) {
LOG.debug("Executing suspend-context-command: $this")
if (LOG.isDebugEnabled) {
LOG.debug("Executing suspend-context-command: $this")
}
contextActionSuspend(suspendContext)
}
check(resetContinuation(null) == null) { "Continuation is not null after resume" }