Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
[epociask/issue-160-slack-fix] Disable logs in L2TestSuite setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethen Pociask committed Oct 20, 2023
1 parent 933b819 commit 9b0e97a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ func CreateL2TestSuite(t *testing.T) *L2TestSuite {
t.Fatal(err)
}

if len(os.Getenv("ENABLE_ROLLUP_LOGS")) == 0 {
t.Log("set env 'ENABLE_ROLLUP_LOGS' to show rollup logs")
for name, logger := range nodeCfg.Loggers {
t.Logf("discarding logs for %s", name)
logger.SetHandler(log.DiscardHandler())
}
}

ss := state.NewMemState()

bundle := &client.Bundle{
Expand Down

0 comments on commit 9b0e97a

Please sign in to comment.