Improve piece retrieving log with offset and length (#813)
This commit is contained in:
parent
a15099d5f5
commit
3175eb74a6
@ -48,7 +48,7 @@ func (s *Server) Retrieve(stream pb.PieceStoreRoutes_RetrieveServer) (err error)
|
|||||||
return RetrieveError.New("PieceStore message is nil")
|
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))
|
id, err := getNamespacedPieceID([]byte(pd.GetId()), getNamespace(authorization))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user