Skip to content

Commit 3888b1c

Browse files
committed
debug
1 parent 6766520 commit 3888b1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/grpc/services/gateway/storageprovider.go

+3
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,7 @@ func (s *svc) statSharesFolder(ctx context.Context) (*provider.StatResponse, err
13961396
}
13971397

13981398
func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.StatResponse, error) {
1399+
log := appctx.GetLogger(ctx)
13991400
providers, err := s.findProviders(ctx, req.Ref)
14001401
if err != nil {
14011402
return &provider.StatResponse{
@@ -1412,6 +1413,7 @@ func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.St
14121413
Status: status.NewInternal(ctx, err, "error connecting to storage provider="+providers[0].Address),
14131414
}, nil
14141415
}
1416+
log.Debug().Interface("ref", req.Ref).Msg("calling Stat")
14151417
rsp, err := c.Stat(ctx, req)
14161418
if err != nil || rsp.Status.Code != rpc.Code_CODE_OK {
14171419
return rsp, err
@@ -1421,6 +1423,7 @@ func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.St
14211423

14221424
// otherwise, this is a Stat for "/", which corresponds to a 0-Depth PROPFIND from web to just get the fileid:
14231425
// we respond with an hardcoded value, no need to poke all storage providers as we did before
1426+
log.Debug().Interface("ref", req.Ref).Msg("sending back fake file-id")
14241427
info := &provider.ResourceInfo{
14251428
Id: &provider.ResourceId{
14261429
StorageId: "/",

0 commit comments

Comments
 (0)