@@ -2,6 +2,7 @@ package transprocessor
22
33import (
44 "context"
5+ "fmt"
56
67 "go.uber.org/zap"
78
@@ -12,10 +13,10 @@ import (
1213)
1314
1415/* instanciate new permission processor */
15- func NewPermProcessor (gRPCPool * grpcpool.ClientPool , errCh chan <- error ) * PermProcessor {
16+ func NewPermProcessor (gRPCPool * grpcpool.ClientPool , errCh chan <- error ) * PermProcessor {
1617 return & PermProcessor {
1718 gRPCPool : gRPCPool ,
18- errCh : errCh ,
19+ errCh : errCh ,
1920 }
2021}
2122
@@ -44,6 +45,15 @@ func (p *PermProcessor) Process(ctx context.Context, curSession *session.Session
4445 /* this line decides between systems like BeeGFS and NFS due to difference in ACL execution */
4546 isRemote , host , port , found , absolutePath := FindServerFromPath (config .BackendConfig .FileSystemServers , txn .TargetPath )
4647
48+ zap .L ().Info ("Found server" ,
49+ zap .String ("targetPath" , txn .TargetPath ),
50+ zap .String ("isRemote" , fmt .Sprintf ("%t" , isRemote )),
51+ zap .String ("host" , host ),
52+ zap .Int ("port" , port ),
53+ zap .String ("found" , fmt .Sprintf ("%t" , found )),
54+ zap .String ("absolutePath" , absolutePath ),
55+ )
56+
4757 if ! found {
4858 /* filepath is invalid, filesystem doesn't exist */
4959 txn .ErrorMsg = "filesystem of given path doesn't exist"
@@ -60,7 +70,7 @@ func (p *PermProcessor) Process(ctx context.Context, curSession *session.Session
6070 }
6171
6272 /* REMOVE THIS */
63- zap .L ().Info ("Completed Transaction" ,
73+ zap .L ().Info ("Completed Transaction" ,
6474 zap .String ("ID" , txn .ID .String ()),
6575 )
6676 }
0 commit comments