Skip to content

Commit 099781e

Browse files
transprocessor
1 parent 17ebad0 commit 099781e

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

internal/transprocessor/perm-processor.go

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package transprocessor
22

33
import (
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
}

internal/transprocessor/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package transprocessor
1+
package transprocessor
22

33
import (
44
"strings"

0 commit comments

Comments
 (0)