This repository was archived by the owner on May 11, 2024. It is now read-only.
Commit d315605 1 parent 5ade026 commit d315605 Copy full SHA for d315605
File tree 4 files changed +11
-3
lines changed
4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ func InitLogger(c *cli.Context) {
19
19
glogger .Verbosity (slogVerbosity )
20
20
log .SetDefault (log .NewLogger (glogger ))
21
21
} else {
22
- glogger := log .NewGlogHandler (log .NewTerminalHandlerWithLevel (os .Stdout , slogVerbosity , true ))
22
+ glogger := log .NewGlogHandler (log .NewTerminalHandler (os .Stdout , true ))
23
+ glogger .Verbosity (slogVerbosity )
23
24
log .SetDefault (log .NewLogger (glogger ))
24
25
}
25
26
}
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ check_env "L1_PROPOSER_PRIVATE_KEY"
41
41
check_env " L1_PROVER_PRIVATE_KEY"
42
42
check_env " TREASURY"
43
43
check_env " JWT_SECRET"
44
+ check_env " VERBOSITY"
44
45
45
46
RUN_TESTS=${RUN_TESTS:- false}
46
47
PACKAGE=${PACKAGE:- ...}
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export L1_PROPOSER_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5ef
22
22
export L2_SUGGESTED_FEE_RECIPIENT=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
23
23
export L1_PROVER_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
24
24
export TREASURY=0x1670010000000000000000000000000000010001
25
+ export VERBOSITY=3
25
26
26
27
# show the integration test environment variables.
27
28
# L1_BEACON_HTTP_ENDPOINT=$L1_BEACON_HTTP_ENDPOINT
@@ -46,4 +47,5 @@ L1_SECURITY_COUNCIL_PRIVATE_KEY=$L1_SECURITY_COUNCIL_PRIVATE_KEY
46
47
L1_PROPOSER_PRIVATE_KEY=$L1_PROPOSER_PRIVATE_KEY
47
48
L1_PROVER_PRIVATE_KEY=$L1_PROVER_PRIVATE_KEY
48
49
TREASURY=$TREASURY
49
- JWT_SECRET=$JWT_SECRET " > integration_test/.env
50
+ JWT_SECRET=$JWT_SECRET
51
+ VERBOSITY=$VERBOSITY " > integration_test/.env
Original file line number Diff line number Diff line change 6
6
"math/big"
7
7
"net/url"
8
8
"os"
9
+ "strconv"
9
10
10
11
"github.com/cenkalti/backoff/v4"
11
12
"github.com/ethereum/go-ethereum/accounts/abi/bind"
@@ -35,7 +36,10 @@ type ClientTestSuite struct {
35
36
func (s * ClientTestSuite ) SetupTest () {
36
37
utils .LoadEnv ()
37
38
// Default logger
38
- glogger := log .NewGlogHandler (log .NewTerminalHandlerWithLevel (os .Stdout , log .LevelInfo , true ))
39
+ ver , err := strconv .Atoi (os .Getenv ("VERBOSITY" ))
40
+ s .Nil (err )
41
+ glogger := log .NewGlogHandler (log .NewTerminalHandler (os .Stdout , true ))
42
+ glogger .Verbosity (log .FromLegacyLevel (ver ))
39
43
log .SetDefault (log .NewLogger (glogger ))
40
44
41
45
testAddrPrivKey , err := crypto .ToECDSA (common .FromHex (os .Getenv ("L1_PROPOSER_PRIVATE_KEY" )))
You can’t perform that action at this time.
0 commit comments