Skip to content

Commit

Permalink
Require explicit logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Apr 9, 2024
1 parent 850b6b3 commit 6166a23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions boxes/boxes/react/tests/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ describe('BoxReact Contract Tests', () => {
.send({ contractAddressSalt: salt })
.deployed();

logger(`L2 contract deployed at ${contract.address}`);
logger.info(`L2 contract deployed at ${contract.address}`);
}, 60000);

test('Can set a number', async () => {
logger(`${await wallet.getRegisteredAccounts()}`);
logger.info(`${await wallet.getRegisteredAccounts()}`);
await contract.methods.setNumber(numberToSet, wallet.getCompleteAddress()).send().wait();
}, 40000);

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/foundation/src/log/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type Logger = { [K in LogLevel]: LogFn } & { /** Error log function */ er
* Logger that supports multiple severity levels and can be called directly to issue a debug statement.
* Intended as a drop-in replacement for the debug module.
*/
export type DebugLogger = LogFn & Logger;
export type DebugLogger = Logger;

/**
* Creates a new DebugLogger for the current module, defaulting to the LOG_LEVEL env var.
Expand Down

0 comments on commit 6166a23

Please sign in to comment.