From 25b3e8a9aa3b86ea6761ab1fca219cbd2d27a132 Mon Sep 17 00:00:00 2001 From: "Bora M. Alper" Date: Sat, 22 Feb 2020 15:57:07 +0000 Subject: [PATCH] magneticod: fix database open error logging --- cmd/magneticod/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/magneticod/main.go b/cmd/magneticod/main.go index 8a7a69c..0f00371 100644 --- a/cmd/magneticod/main.go +++ b/cmd/magneticod/main.go @@ -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)