@@ -1396,12 +1396,14 @@ func (s *svc) statSharesFolder(ctx context.Context) (*provider.StatResponse, err
1396
1396
}
1397
1397
1398
1398
func (s * svc ) stat (ctx context.Context , req * provider.StatRequest ) (* provider.StatResponse , error ) {
1399
+ log := appctx .GetLogger (ctx )
1399
1400
providers , err := s .findProviders (ctx , req .Ref )
1400
1401
if err != nil {
1401
1402
return & provider.StatResponse {
1402
1403
Status : status .NewStatusFromErrType (ctx , "stat ref: " + req .Ref .String (), err ),
1403
1404
}, nil
1404
1405
}
1406
+ log .Debug ().Interface ("ref" , req .Ref ).Msg ("calling getUniqueProviders" )
1405
1407
providers = getUniqueProviders (providers )
1406
1408
1407
1409
resPath := req .Ref .GetPath ()
@@ -1412,6 +1414,7 @@ func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.St
1412
1414
Status : status .NewInternal (ctx , err , "error connecting to storage provider=" + providers [0 ].Address ),
1413
1415
}, nil
1414
1416
}
1417
+ log .Debug ().Interface ("ref" , req .Ref ).Msg ("calling Stat" )
1415
1418
rsp , err := c .Stat (ctx , req )
1416
1419
if err != nil || rsp .Status .Code != rpc .Code_CODE_OK {
1417
1420
return rsp , err
@@ -2264,6 +2267,8 @@ func (s *svc) findProviders(ctx context.Context, ref *provider.Reference) ([]*re
2264
2267
return nil , errors .Wrap (err , "gateway: error getting storage registry client" )
2265
2268
}
2266
2269
2270
+ log := appctx .GetLogger (ctx )
2271
+ log .Debug ().Interface ("ref" , ref ).Msg ("calling GetStorageProviders" )
2267
2272
res , err := c .GetStorageProviders (ctx , & registry.GetStorageProvidersRequest {
2268
2273
Ref : ref ,
2269
2274
})
0 commit comments