Skip to content

Commit

Permalink
chore: fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedziwiatr committed Aug 8, 2023
1 parent c3fdbe2 commit 454bbe3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/core/modules/impl/handler/AbstractContractHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ export abstract class AbstractContractHandler<State> implements HandlerApi<State
? `Internal write auto error for call [${JSON.stringify(debugData)}]: ${result.errorMessage}`
: result.errorMessage;

this.logger.warn('Error from internal write', {
...debugData,
effectiveErrorMessage
});
if (effectiveErrorMessage) {
this.logger.debug('Error from internal write', {
...debugData,
effectiveErrorMessage
});
}

const resultErrorMessages = effectiveErrorMessage
? {
Expand Down

0 comments on commit 454bbe3

Please sign in to comment.