magneticod: fix database open error logging
This commit is contained in:
parent
5a869e127b
commit
25b3e8a9aa
@ -94,7 +94,7 @@ func main() {
|
||||
|
||||
database, err := persistence.MakeDatabase(opFlags.DatabaseURL, logger)
|
||||
if err != nil {
|
||||
logger.Sugar().Fatalf("Could not open the database at `%s`", opFlags.DatabaseURL, zap.Error(err))
|
||||
logger.Fatal("Could not open the database", zap.String("url", opFlags.DatabaseURL), zap.Error(err))
|
||||
}
|
||||
|
||||
trawlingManager := dht.NewManager(opFlags.IndexerAddrs, opFlags.IndexerInterval, opFlags.IndexerMaxNeighbors)
|
||||
|
Loading…
Reference in New Issue
Block a user