Skip to content

Commit

Permalink
nfsv3: remove unnecessary call of Inode#toString for logging
Browse files Browse the repository at this point in the history
the call of Inode#toString for logging is redundant, especially when
logger is disabled.

Acked-by: Lea Morschel
Acked-by: Paul Millar
Target: master
  • Loading branch information
kofemann committed May 4, 2021
1 parent 8772820 commit de0a8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/dcache/nfs/v3/NfsServerV3.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public GETATTR3res NFSPROC3_GETATTR_3(RpcCall call$, GETATTR3args arg1) {

try{
Inode inode = new Inode(arg1.object.data);
_log.debug("NFS Request GETATTR for inode: {}", inode.toString());
_log.debug("NFS Request GETATTR for inode: {}", inode);

res.status = nfsstat.NFS_OK;
res.resok = new GETATTR3resok();
Expand Down

0 comments on commit de0a8d4

Please sign in to comment.