@@ -222,8 +222,8 @@ type snapshotTest struct {
222
222
223
223
func (snaptest * snapshotTest ) test (t * testing.T ) {
224
224
// It's hard to follow the test case, visualize the input
225
- // log.Root().SetHandler( log.LvlFilterHandler (log.LvlTrace, log.StreamHandler (os.Stderr, log.TerminalFormat( true) )))
226
- // fmt.Println(tt .dump())
225
+ // log.SetDefault( log.NewLogger (log.NewTerminalHandlerWithLevel (os.Stderr, log.LevelInfo, true)))
226
+ // fmt.Println(snaptest .dump())
227
227
chain , blocks := snaptest .prepare (t )
228
228
229
229
// Restart the chain normally
@@ -245,8 +245,8 @@ type crashSnapshotTest struct {
245
245
246
246
func (snaptest * crashSnapshotTest ) test (t * testing.T ) {
247
247
// It's hard to follow the test case, visualize the input
248
- // log.Root().SetHandler( log.LvlFilterHandler (log.LvlTrace, log.StreamHandler (os.Stderr, log.TerminalFormat( true) )))
249
- // fmt.Println(tt .dump())
248
+ // log.SetDefault( log.NewLogger (log.NewTerminalHandlerWithLevel (os.Stderr, log.LevelInfo, true)))
249
+ // fmt.Println(snaptest .dump())
250
250
chain , blocks := snaptest .prepare (t )
251
251
252
252
// Pull the plug on the database, simulating a hard crash
@@ -297,8 +297,8 @@ type gappedSnapshotTest struct {
297
297
298
298
func (snaptest * gappedSnapshotTest ) test (t * testing.T ) {
299
299
// It's hard to follow the test case, visualize the input
300
- // log.Root().SetHandler( log.LvlFilterHandler (log.LvlTrace, log.StreamHandler (os.Stderr, log.TerminalFormat( true) )))
301
- // fmt.Println(tt .dump())
300
+ // log.SetDefault( log.NewLogger (log.NewTerminalHandlerWithLevel (os.Stderr, log.LevelInfo, true)))
301
+ // fmt.Println(snaptest .dump())
302
302
chain , blocks := snaptest .prepare (t )
303
303
304
304
// Insert blocks without enabling snapshot if gapping is required.
@@ -341,8 +341,8 @@ type setHeadSnapshotTest struct {
341
341
342
342
func (snaptest * setHeadSnapshotTest ) test (t * testing.T ) {
343
343
// It's hard to follow the test case, visualize the input
344
- // log.Root().SetHandler( log.LvlFilterHandler (log.LvlTrace, log.StreamHandler (os.Stderr, log.TerminalFormat( true) )))
345
- // fmt.Println(tt .dump())
344
+ // log.SetDefault( log.NewLogger (log.NewTerminalHandlerWithLevel (os.Stderr, log.LevelInfo, true)))
345
+ // fmt.Println(snaptest .dump())
346
346
chain , blocks := snaptest .prepare (t )
347
347
348
348
// Rewind the chain if setHead operation is required.
@@ -370,8 +370,8 @@ type wipeCrashSnapshotTest struct {
370
370
371
371
func (snaptest * wipeCrashSnapshotTest ) test (t * testing.T ) {
372
372
// It's hard to follow the test case, visualize the input
373
- // log.Root().SetHandler( log.LvlFilterHandler (log.LvlTrace, log.StreamHandler (os.Stderr, log.TerminalFormat( true) )))
374
- // fmt.Println(tt .dump())
373
+ // log.SetDefault( log.NewLogger (log.NewTerminalHandlerWithLevel (os.Stderr, log.LevelInfo, true)))
374
+ // fmt.Println(snaptest .dump())
375
375
chain , blocks := snaptest .prepare (t )
376
376
377
377
// Firstly, stop the chain properly, with all snapshot journal
0 commit comments