Skip to content

Commit 0d1ffa1

Browse files
authored
chore: update debug log levels (#23456)
Stack: #23439 -> #23440 -> #23441 -> #23442 -> #23456
1 parent ad6b16a commit 0d1ffa1

10 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/developer_versioned_docs/version-v4.3.0/docs/aztec-nr/debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Enable different levels of logging on the local network or node by setting `LOG_
1919

2020
```bash
2121
# Set log level (options: fatal, error, warn, info, verbose, debug, trace)
22-
LOG_LEVEL=debug aztec start --local-network
22+
LOG_LEVEL="debug; info: json-rpc, simulator" aztec start --local-network
2323

2424
# Different levels for different services
2525
LOG_LEVEL="verbose;info:sequencer" aztec start --local-network

docs/docs-operate/operators/reference/ethereum-rpc-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Aztec automatically retries failed requests on alternative endpoints when multip
270270
Enable detailed RPC logging:
271271

272272
```bash
273-
LOG_LEVEL=debug # or verbose
273+
LOG_LEVEL="debug; info: json-rpc, simulator" # or verbose
274274
```
275275

276276
Look for log entries related to:

docs/network_versioned_docs/version-v4.3.0/operators/reference/ethereum-rpc-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Aztec automatically retries failed requests on alternative endpoints when multip
270270
Enable detailed RPC logging:
271271

272272
```bash
273-
LOG_LEVEL=debug # or verbose
273+
LOG_LEVEL="debug; info: json-rpc, simulator" # or verbose
274274
```
275275

276276
Look for log entries related to:

spartan/environments/next-net.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ L1_TX_FAILED_STORE=gs://aztec-develop/next-net/failed-l1-txs
3030
TEST_ACCOUNTS=true
3131
SPONSORED_FPC=true
3232

33-
LOG_LEVEL=debug
33+
LOG_LEVEL="debug; info: json-rpc, simulator"
3434

3535
SEQ_ENABLE_PROPOSER_PIPELINING=true
3636
SEQ_MIN_TX_PER_BLOCK=1

spartan/testnet-runbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ After cutting a release, deploy a public testnet using the new Docker containers
3939
Verbose logging on Aztec nodes should be enabled by default using the following `ENV VARS`:
4040

4141
- `LOG_JSON=1`
42-
- `LOG_LEVEL=debug`
42+
- `LOG_LEVEL="debug; info: json-rpc, simulator"`
4343

4444
Deployments are initiated from CI by manually running the (_name pending_) workflow.
4545

yarn-project/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ yarn workspace @aztec/<package-name> test --runInBand
118118

119119
```bash
120120
LOG_LEVEL=verbose yarn workspace @aztec/<package-name> test src/file.test.ts # Recommended
121-
LOG_LEVEL=debug yarn workspace @aztec/<package-name> test src/file.test.ts # More detail
121+
LOG_LEVEL="debug; info: json-rpc, simulator" yarn workspace @aztec/<package-name> test src/file.test.ts # More detail
122122
# Available levels: trace, debug, verbose, info, warn
123123

124124
# Module-specific logging

yarn-project/bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ function test_cmds {
201201

202202
# Add debug logging for tests that require a bit more info
203203
if [[ "$test" == p2p/src/client/p2p_client.test.ts || "$test" == p2p/src/services/discv5/discv5_service.test.ts || "$test" == p2p/src/client/p2p_client.integration.test.ts ]]; then
204-
cmd_env+=" LOG_LEVEL=debug"
204+
cmd_env+=" LOG_LEVEL=\"debug; info: json-rpc, simulator\""
205205
elif [[ "$test" =~ rollup_ivc_integration || "$test" =~ avm_integration ]]; then
206-
cmd_env+=" LOG_LEVEL=debug BB_VERBOSE=1 "
206+
cmd_env+=" LOG_LEVEL=\"debug; info: json-rpc, simulator\" BB_VERBOSE=1 "
207207
elif [[ "$test" =~ e2e_p2p ]]; then
208208
cmd_env+=" LOG_LEVEL='verbose; debug:p2p'"
209209
fi

yarn-project/cli-wallet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"start": "node --no-warnings ./dest/bin",
2121
"start:debug": "node --inspect=0.0.0.0:9221 --no-warnings ./dest/bin",
22-
"dev": "LOG_LEVEL=debug && node ./dest/bin",
22+
"dev": "LOG_LEVEL=\"debug; info: json-rpc, simulator\" node ./dest/bin",
2323
"build": "yarn clean && ../scripts/tsc.sh",
2424
"build:dev": "../scripts/tsc.sh --watch",
2525
"clean": "rm -rf ./dest .tsbuildinfo",

yarn-project/prover-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"clean": "rm -rf ./dest .tsbuildinfo",
2929
"bb": "node --no-warnings ./dest/bb/index.js",
3030
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=3500000",
31-
"test:debug": "LOG_LEVEL=debug NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=1500000 --testNamePattern prover/bb_prover/parity"
31+
"test:debug": "LOG_LEVEL=\"debug; info: json-rpc, simulator\" NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=1500000 --testNamePattern prover/bb_prover/parity"
3232
},
3333
"jest": {
3434
"moduleNameMapper": {

yarn-project/simulator/src/public/avm/avm_simulator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ describe('AVM simulator: transpiled Noir contracts', () => {
452452
* Can run these as follows to measure sha256 instruction execution counts:
453453
* for i in 10 20 30 40 50 60 70 80 90 100 255 256 511 512 2048; do
454454
* echo sha-ing $i...;
455-
* LOG_LEVEL=debug yarn test src/avm/avm_simulator.test.ts -t "sha256_hash_$i " &> sha$i.log;
455+
* LOG_LEVEL="debug; info: json-rpc, simulator" yarn test src/avm/avm_simulator.test.ts -t "sha256_hash_$i " &> sha$i.log;
456456
* done
457457
* for i in 10 20 30 40 50 60 70 80 90 100 255 256 511 512 2048; do
458458
* echo sha256 of $i bytes $(grep -Eo 'Executed .* instructions.* Gas' sha$i.log);

0 commit comments

Comments
 (0)