Skip to content

Commit

Permalink
chore: Hide note_hashes log
Browse files Browse the repository at this point in the history
Hides the log message 'Context.note_hashes, after pushing new note hash'
in the oracle. Note we cannot just remove it due to #10558.
  • Loading branch information
spalladino committed Jan 6, 2025
1 parent f35094f commit d9d5423
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions yarn-project/simulator/src/client/client_execution_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,10 +544,6 @@ export class ClientExecutionContext extends ViewDataOracle {
);
}

public override debugLog(message: string, fields: Fr[]) {
this.log.verbose(`${applyStringFormatting(message, fields)}`, { module: `${this.log.module}:debug_log` });
}

public getDebugFunctionName() {
return this.db.getDebugFunctionName(this.contractAddress, this.callContext.functionSelector);
}
Expand Down
4 changes: 4 additions & 0 deletions yarn-project/simulator/src/client/view_data_oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ export class ViewDataOracle extends TypedOracle {
}

public override debugLog(message: string, fields: Fr[]): void {
// TODO(#10558) Remove this check once the debug log is fixed
if (message.startsWith('Context.note_hashes, after pushing new note hash:')) {
return;
}
this.log.verbose(`${applyStringFormatting(message, fields)}`, { module: `${this.log.module}:debug_log` });
}

Expand Down

0 comments on commit d9d5423

Please sign in to comment.