Skip to content

Commit 291a624

Browse files
authored
add cost logs (#1366)
1 parent 038a9ea commit 291a624

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/core/compute/startCompute.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,10 @@ export class PaidComputeStartHandler extends CommonComputeHandler {
571571
task.maxJobDuration
572572
)
573573
let agreementId
574+
CORE_LOGGER.logMessage(
575+
`escrow.createLock cost=${cost} token=${task.payment.token} chainId=${task.payment.chainId} resources=${JSON.stringify(task.resources)} maxJobDuration=${task.maxJobDuration}`,
576+
true
577+
)
574578
try {
575579
agreementId = await engine.escrow.createLock(
576580
task.payment.chainId,

0 commit comments

Comments
 (0)