good morning!!!!

Skip to content
Snippets Groups Projects
Commit 74168d94 authored by alex.sharov's avatar alex.sharov
Browse files

remove debug prints

parent a6a63e8b
No related branches found
No related tags found
No related merge requests found
package commands
import (
"fmt"
"path"
"github.com/ledgerwatch/erigon-lib/kv"
......@@ -41,12 +40,10 @@ func openDB(path string, logger log.Logger, applyMigrations bool) kv.RwDB {
label := kv.ChainDB
db := openKV(label, logger, path, false)
if applyMigrations {
fmt.Printf("alex1\n")
has, err := migrations.NewMigrator(label).HasPendingMigrations(db)
if err != nil {
panic(err)
}
fmt.Printf("alex2: %t\n", has)
if has {
log.Info("Re-Opening DB in exclusive mode to apply DB migrations")
db.Close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment