Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
Signed-off-by: KayleCoder <[email protected]>
  • Loading branch information
KayleCoder committed Aug 5, 2024
1 parent 69caca5 commit 53cfc00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/service/tonbag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function registerStorageProvider() {
try {
await registerProvider(task);
} catch (e) {
logger.error(`Register provider failed: ${e.message}`);
logger.error(`Register provider failed: ${e.message} ${e.stack}`);
await sleep(1);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/wrapper/StorageContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export class StorageContract implements Contract {
async getOrderState(provider: ContractProvider): Promise<any|null> {
const orderState = await provider.getState();
if (orderState.state.type !== "active") {
logger.error(`Order contract is not active: ${orderState.state.type}`);
logger.error(`Order contract is not active: ${orderState.state.type} address: ${this.address.toString()}`);
return null;
}
const cells = Cell.fromBoc(orderState.state.data!);
Expand Down

0 comments on commit 53cfc00

Please sign in to comment.