Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
magneticod: fix database open error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
boramalper committed Feb 22, 2020
1 parent 5a869e1 commit 25b3e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/magneticod/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 25b3e8a

Please sign in to comment.