Improve piece retrieving log with offset and length (#813)

This commit is contained in:
Kaloyan Raev 2018-12-10 17:22:49 +02:00 committed by GitHub
parent a15099d5f5
commit 3175eb74a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ func (s *Server) Retrieve(stream pb.PieceStoreRoutes_RetrieveServer) (err error)
return RetrieveError.New("PieceStore message is nil")
}
zap.S().Infof("Retrieving %s...", pd.GetId())
zap.S().Infof("Retrieving piece %s with offset %d and length %d.", pd.GetId(), pd.GetOffset(), pd.GetPieceSize())
id, err := getNamespacedPieceID([]byte(pd.GetId()), getNamespace(authorization))
if err != nil {