Skip to content

Commit

Permalink
chore: Hide note_hashes log (#11059)
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 


https://github.com/AztecProtocol/aztec-packages/blob/f35094fd74f28d5bb41084f7b89f961a5f4d0af0/noir-projects/aztec-nr/aztec/src/context/private_context.nr#L143-L147
  • Loading branch information
spalladino authored Jan 6, 2025
1 parent 84e67ac commit d9a14d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { computeUniqueNoteHash, siloNoteHash } from '@aztec/circuits.js/hash';
import { type FunctionAbi, type FunctionArtifact, type NoteSelector, countArgumentsSize } from '@aztec/foundation/abi';
import { AztecAddress } from '@aztec/foundation/aztec-address';
import { Fr } from '@aztec/foundation/fields';
import { applyStringFormatting, createLogger } from '@aztec/foundation/log';
import { createLogger } from '@aztec/foundation/log';

import { type NoteData, toACVMWitness } from '../acvm/index.js';
import { type PackedValuesCache } from '../common/packed_values_cache.js';
Expand Down 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 d9a14d2

Please sign in to comment.