Skip to content

Commit b0f2e28

Browse files
committed
Add logs in initialize.
1 parent 8b12f94 commit b0f2e28

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/commands.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ export class Commands {
362362
});
363363
}
364364
const maxJobDuration = Number(args[4])
365+
console.log(`maxJobDuration: `, args[4])
365366
if (!maxJobDuration) {
366367
console.error(
367368
"Error initializing Provider for the compute job using dataset DID " +
@@ -387,6 +388,7 @@ export class Commands {
387388
supportedMaxJobDuration = computeEnv.maxJobDuration;
388389
}
389390
const paymentToken = args[5]
391+
console.log(`paymentToken: `, args[5])
390392
if (!paymentToken) {
391393
console.error(
392394
"Error initializing Provider for the compute job using dataset DID " +
@@ -398,6 +400,7 @@ export class Commands {
398400
return;
399401
}
400402
const chainId = await this.signer.getChainId()
403+
console.log(`chainId: `, chainId)
401404
if (!Object.keys(computeEnv.fees).includes(chainId.toString())) {
402405
console.error(
403406
"Error starting paid compute using dataset DID " +
@@ -423,6 +426,7 @@ export class Commands {
423426
return;
424427
}
425428
const resources = args[6] // resources object should be stringified in cli when calling initializeCompute
429+
console.log(`args[6]: `, args[6])
426430
if (!resources) {
427431
console.error(
428432
"Error initializing Provider for the compute job using dataset DID " +

0 commit comments

Comments
 (0)