File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,19 +113,19 @@ export class Nfsv4Connection {
113113 const { xid, proc} = procedure ;
114114 switch ( proc ) {
115115 case Nfsv4Proc . COMPOUND : {
116- // if (debug) logger.log(' COMPOUND', procedure );
116+ if ( debug ) logger . log ( `\n< COMPOUND{ ${ xid } }>` ) ;
117117 if ( ! ( procedure . params instanceof Reader ) ) return ;
118118 const compound = this . nfsDecoder . decodeCompoundRequest ( procedure . params ) ;
119119 if ( compound instanceof msg . Nfsv4CompoundRequest ) {
120120 new Nfsv4CompoundProcCtx ( this , compound )
121121 . exec ( )
122122 . then ( ( procResponse ) => {
123- // if (debug) logger.log(' COMPOUND', procResponse );
123+ if ( debug ) logger . log ( `</ COMPOUND{ ${ xid } }>` ) ;
124124 this . nfsEncoder . writeAcceptedCompoundReply ( xid , EMPTY_AUTH , procResponse ) ;
125125 this . write ( writer . flush ( ) ) ;
126126 } )
127127 . catch ( ( err ) => {
128- logger . error ( 'NFS COMPOUND error:' , err ) ;
128+ logger . error ( 'NFS COMPOUND error:' , xid , err ) ;
129129 this . nfsEncoder . writeRejectedReply ( xid , Nfsv4Stat . NFS4ERR_SERVERFAULT ) ;
130130 } ) ;
131131 } else this . closeWithError ( RpcAcceptStat . GARBAGE_ARGS ) ;
You can’t perform that action at this time.
0 commit comments