Skip to content

Commit

Permalink
fix: accept logs >= current log level
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Oct 29, 2024
1 parent dfaaa21 commit b8f1a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/call-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ export class CallContext {
};

/** @hidden */
#handleLog(threshold: LogLevelPriority, level: LogLevel, addr: bigint) {
if (this.#logLevel > threshold) {
#handleLog(incomingLevel: LogLevelPriority, level: LogLevel, addr: bigint) {
if (this.#logLevel < incomingLevel) {
return;
}
const blockIdx = Block.addressToIndex(addr);
Expand Down

0 comments on commit b8f1a6b

Please sign in to comment.