magneticod: fix database open error logging

This commit is contained in:
Bora M. Alper 2020-02-22 15:57:07 +00:00
parent 5a869e127b
commit 25b3e8a9aa
No known key found for this signature in database
GPG Key ID: 8F1A9504E1BD114D

View File

@ -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)